Use metadata in more places

This commit is contained in:
Greg Hellings
2025-12-28 21:18:13 -06:00
parent ac35cd8a5c
commit 8c99a92d77
5 changed files with 29 additions and 18 deletions
+4 -3
View File
@@ -4,13 +4,14 @@
{
config,
metadata,
pkgs,
...
}:
let
wanInterface = "enp2s0";
lanInterface = "enp1s0";
lanIpAddress = "10.42.1.7";
lanIpAddress = metadata.hosts.${config.networking.hostName}.ip;
in
{
@@ -70,8 +71,8 @@ in
networking = {
hostName = "hosea";
nameservers = [ "10.42.1.5" ];
defaultGateway = "10.42.1.1";
nameservers = [ metadata.infra.dns ];
defaultGateway = metadata.infra.gw;
interfaces = {
"${wanInterface}".useDHCP = true;
"${lanInterface}" = {