Some work to do with systemd-networkd. Still nowhere near enough to create an actual config.
This commit is contained in:
parent
b46c51e720
commit
4a4b369136
5 changed files with 90 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue