mirror of
https://github.com/donovanglover/nix-config.git
synced 2024-11-22 16:23:57 +01:00
32 lines
493 B
Nix
32 lines
493 B
Nix
{
|
|
networking = {
|
|
hostName = "nixos";
|
|
|
|
networkmanager = {
|
|
enable = true;
|
|
wifi.macAddress = "random";
|
|
ethernet.macAddress = "random";
|
|
|
|
unmanaged = [ "interface-name:ve-*" ];
|
|
};
|
|
|
|
useHostResolvConf = true;
|
|
|
|
nat = {
|
|
enable = true;
|
|
internalInterfaces = [ "ve-+" ];
|
|
externalInterface = "wg-mullvad";
|
|
};
|
|
|
|
firewall = {
|
|
allowedUDPPorts = [
|
|
5029
|
|
];
|
|
|
|
allowedTCPPorts = [
|
|
1111
|
|
];
|
|
};
|
|
};
|
|
}
|