1
0
forked from extern/nix-config
donovanglover-nix-config/host/mullvad/default.nix
2023-05-19 02:54:35 -04:00

23 lines
377 B
Nix

{ pkgs, ... }:
{
environment.systemPackages = [ pkgs.mullvad-vpn ];
services.mullvad-vpn = {
enable = true;
enableExcludeWrapper = false;
};
networking = {
nat = {
enable = true;
internalInterfaces = [ "ve-+" ];
externalInterface = "wg-mullvad";
};
networkmanager = {
unmanaged = [ "interface-name:ve-*" ];
};
};
}