Files
nixos-config/modules/sys/hardware/network.nix

23 lines
402 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];
};
};
}