Files
nixos-config/modules/sys/hardware/network.nix
2024-10-18 02:07:09 -04:00

19 lines
374 B
Nix

{host, ...}: {
networking = {
networkmanager.enable = true;
hostName =
if (host == "oganesson")
then "oganesson"
else "mercury";
hosts = {
"192.168.1.201" = ["glasshaus"];
"192.168.1.111" = ["argon"];
"192.168.1.223" = ["mercury"];
};
firewall = {
enable = true;
allowedTCPPorts = [30000];
};
};
}