import ip from .nix file

This commit is contained in:
2025-04-17 09:06:18 -05:00
parent d46758d225
commit 918eb71e7e
+10 -9
View File
@@ -33,16 +33,17 @@
];
};
networking.hostName = meta.hostname;
networking.hostname = meta.hostname;
networking.interfaces.eth0.ipv4.addresses = [
{
address = "${
config.sops.secrets."nixos-homelab-00".path
}";
prefixLength = 24;
}
];
let
addresses = import ./ip-addresses.nix;
in {
networking.interfaces.eth0.ipv4.addresses = [
{
address = addresses.${meta.hostname};
prefixLength = 24;
}
];
# Set your time zone.
time.timeZone = "America/Chicago";