diff --git a/utils.nix b/utils.nix index ca01167..1b9a9f7 100644 --- a/utils.nix +++ b/utils.nix @@ -30,7 +30,19 @@ # Disable automatic pgp key generation based on ssh keys sops.gnupg.sshKeyPaths = [ ]; - networking.hostName = hostConfig.hostname; + networking = { + hostName = hostConfig.hostname; + interfaces.ens18.ipv4.addresses = [ + { + address = hostConfig.ip; + prefixLength = 24; + } + ]; + defaultGateway = { + address = "192.168.10.1"; + interface = "ens18"; + }; + }; system.stateVersion = hostConfig.stateVersion; } )