Files
shed/modules/sys/hardware/network.nix
2024-10-31 22:33:10 -04:00

21 lines
400 B
Nix

{host, ...}: let
desktop = host == "oganesson";
in {
networking = {
networkmanager.enable = true;
hostName =
if desktop
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];
};
};
}