Use IP from config as static IP

main
kalle 2025-02-03 17:23:12 +01:00
parent a900c1931f
commit 6916cddc48
1 changed files with 13 additions and 1 deletions

View File

@ -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;
}
)