2023-06-22 17:00:39 +02:00
|
|
|
{
|
2023-06-18 21:51:52 +02:00
|
|
|
networking = {
|
2023-06-22 17:00:39 +02:00
|
|
|
hostName = "nixos";
|
2023-06-18 21:51:52 +02:00
|
|
|
|
|
|
|
networkmanager = {
|
|
|
|
enable = true;
|
|
|
|
wifi.macAddress = "random";
|
|
|
|
ethernet.macAddress = "random";
|
|
|
|
|
|
|
|
unmanaged = [ "interface-name:ve-*" ];
|
|
|
|
};
|
|
|
|
|
|
|
|
useHostResolvConf = true;
|
|
|
|
|
2023-12-01 05:02:50 +01:00
|
|
|
resolvconf.enable = false;
|
|
|
|
|
2023-06-18 21:51:52 +02:00
|
|
|
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
|
|
|
};
|
2023-06-18 21:51:52 +02:00
|
|
|
};
|
2024-04-03 12:19:01 +02:00
|
|
|
|
|
|
|
services.resolved.llmnr = "false";
|
2024-04-04 10:24:54 +02:00
|
|
|
|
|
|
|
services.mullvad-vpn = {
|
|
|
|
enable = true;
|
|
|
|
enableExcludeWrapper = false;
|
|
|
|
};
|
2023-06-18 21:51:52 +02:00
|
|
|
}
|