Some work to do with systemd-networkd. Still nowhere near enough to create an actual config.

This commit is contained in:
Yaro Kasear 2025-11-29 11:21:10 -06:00
parent b46c51e720
commit 4a4b369136
5 changed files with 90 additions and 2 deletions

View file

@ -331,6 +331,11 @@ let
{
ip-address = ip;
inherit hostname fqdn;
# New context fields:
location = locationName;
subnetType = typeName;
subnetKey = "${locationName}-${typeName}";
}
// optionalAttrs (hostCfg ? hw-address) {
inherit (hostCfg) hw-address;
@ -341,7 +346,11 @@ let
// optionalAttrs (hostCfg ? aliases) {
inherit (hostCfg) aliases;
}
))
// optionalAttrs (hostCfg ? interface) {
inherit (hostCfg) interface;
}
)
)
hostNames))
subnets)
locations;