Use IP from config as static IP
parent
a900c1931f
commit
6916cddc48
14
utils.nix
14
utils.nix
|
@ -30,7 +30,19 @@
|
||||||
# Disable automatic pgp key generation based on ssh keys
|
# Disable automatic pgp key generation based on ssh keys
|
||||||
sops.gnupg.sshKeyPaths = [ ];
|
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;
|
system.stateVersion = hostConfig.stateVersion;
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue