mirror of
https://github.com/donovanglover/nix-config.git
synced 2024-11-26 02:03:21 +01:00
7f97bb62c2
Link-Local Multicast Name Resolution is networking related and should be of interest to users that are also interested in the networking module.
36 lines
563 B
Nix
36 lines
563 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
|
|
];
|
|
};
|
|
};
|
|
|
|
services.resolved.llmnr = "false";
|
|
}
|