mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 12:29:19 -08:00
chore(access): network.networks.global
This commit is contained in:
parent
4662495775
commit
dd30009b7e
5 changed files with 44 additions and 3 deletions
|
|
@ -20,6 +20,7 @@
|
|||
prefix = "fd0a:";
|
||||
};
|
||||
int.slaac.prefix = "fd0c:";
|
||||
global.domain = systemConfig.access.domain;
|
||||
};
|
||||
in {
|
||||
options = with lib.types; {
|
||||
|
|
@ -68,7 +69,7 @@
|
|||
);
|
||||
postfix = mkIf (config.macAddress != null) (mkOptionDefault (eui64 config.macAddress));
|
||||
};
|
||||
domain = mkOptionDefault "${config.name}.${systemConfig.access.domain}";
|
||||
domain = mkOptionDefault knownNetworks.${config.name}.domain or "${config.name}.${systemConfig.access.domain}";
|
||||
fqdn = mkOptionDefault (mapNullable (domain: "${systemConfig.access.hostName}.${domain}") config.domain);
|
||||
address6 = mkIf config.slaac.enable (mkOptionDefault "${config.slaac.prefix}:${config.slaac.postfix}");
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue