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 = [ let
{ addresses = import ./ip-addresses.nix;
address = "${ in {
config.sops.secrets."nixos-homelab-00".path networking.interfaces.eth0.ipv4.addresses = [
}"; {
prefixLength = 24; address = addresses.${meta.hostname};
} prefixLength = 24;
]; }
];
# Set your time zone. # Set your time zone.
time.timeZone = "America/Chicago"; time.timeZone = "America/Chicago";