diff --git a/hosts/harbor/configuration.nix b/hosts/harbor/configuration.nix index e8fe451..cd23fd7 100644 --- a/hosts/harbor/configuration.nix +++ b/hosts/harbor/configuration.nix @@ -97,7 +97,6 @@ boot.loader.grub.version = 2; boot.kernelParams = [ "net.ifnames=0" # ensure iface is called eth0 - "ip=173.249.42.252::173.249.42.1:255.255.255.0:harbor::none" ]; networking.networkmanager.enable = true; networking = { @@ -118,6 +117,17 @@ availableKernelModules = ["virtio_pci"]; systemd.enable = true; systemd.users.root.shell = "/usr/bin/systemd-tty-ask-password-agent"; + systemd.network = { + enable = true; + networks."10-eth" = { + matchConfig.Name = "eth0"; + networkConfig = { + Address = "173.249.42.252/24"; + Gateway = "173.249.42.1"; + }; + routes = [{Gateway = "173.249.42.1";}]; + }; + }; network = { enable = true; ssh = {