1
0
forked from extern/nix-config
donovanglover-nix-config/modules/networking.nix

34 lines
525 B
Nix
Raw Permalink Normal View History

{
networking = {
hostName = "nixos";
networkmanager = {
enable = true;
wifi.macAddress = "random";
ethernet.macAddress = "random";
unmanaged = [ "interface-name:ve-*" ];
};
useHostResolvConf = true;
resolvconf.enable = false;
nat = {
enable = true;
internalInterfaces = [ "ve-+" ];
externalInterface = "wg-mullvad";
};
2023-07-15 23:02:55 +02:00
firewall = {
2023-09-12 21:20:43 +02:00
allowedUDPPorts = [
5029
];
allowedTCPPorts = [
1111
];
2023-07-15 23:02:55 +02:00
};
};
}