2023-05-19 08:54:35 +02:00
|
|
|
{ pkgs, ... }:
|
|
|
|
|
2023-05-17 15:23:38 +02:00
|
|
|
{
|
2023-05-19 08:54:35 +02:00
|
|
|
environment.systemPackages = [ pkgs.mullvad-vpn ];
|
|
|
|
|
2023-05-17 15:23:38 +02:00
|
|
|
services.mullvad-vpn = {
|
|
|
|
enable = true;
|
|
|
|
enableExcludeWrapper = false;
|
|
|
|
};
|
|
|
|
|
|
|
|
networking = {
|
|
|
|
nat = {
|
|
|
|
enable = true;
|
|
|
|
internalInterfaces = [ "ve-+" ];
|
|
|
|
externalInterface = "wg-mullvad";
|
|
|
|
};
|
|
|
|
|
|
|
|
networkmanager = {
|
|
|
|
unmanaged = [ "interface-name:ve-*" ];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|