hackens-org-configurations/machines/org/_networking.nix
2023-12-19 13:34:37 +01:00

20 lines
381 B
Nix

{ pkgs, ... }:
{
networking.useDHCP = false;
systemd.network = {
enable = true;
networks = {
"10-uplink" = {
name = "eth0";
DHCP = "no";
address = [
"129.199.129.76/24"
];
networkConfig = {
Gateway = "129.199.129.1";
};
};
};
};
networking.nameservers = [ "1.1.1.1" "8.8.8.8" ];
}