1
0
forked from extern/nix-config
donovanglover-nix-config/host/mullvad/default.nix

23 lines
377 B
Nix
Raw Normal View History

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-*" ];
};
};
}