mirror of
https://github.com/donovanglover/nix-config.git
synced 2024-11-23 00:34:24 +01:00
c7415ebe69
Fixes an issue where newer versions of the Mullvad module would cause websites to not resolve. See: https://discourse.nixos.org/t/connected-to-mullvadvpn-but-no-internet-connection/35803
34 lines
525 B
Nix
34 lines
525 B
Nix
{
|
|
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";
|
|
};
|
|
|
|
firewall = {
|
|
allowedUDPPorts = [
|
|
5029
|
|
];
|
|
|
|
allowedTCPPorts = [
|
|
1111
|
|
];
|
|
};
|
|
};
|
|
}
|