nixos/system/core/networking.nix
2025-03-24 21:21:19 +01:00

25 lines
386 B
Nix

{ ... }:
{
networking.networkmanager = {
enable = true;
wifi.macAddress = "random";
ethernet.macAddress = "random";
};
networking.nameservers = [
"192.168.178.1"
"192.168.178.111"
];
networking.nftables = {
enable = true;
};
networking.firewall = {
enable = true;
allowedTCPPorts = [
22 # ssh
22000 # syncthing
];
};
}