mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 12:29:19 -08:00
refactor(dnsmasq): system host info
This commit is contained in:
parent
86ac38cf2c
commit
6c88d99ae6
30 changed files with 841 additions and 288 deletions
|
|
@ -102,6 +102,9 @@
|
|||
};
|
||||
in {
|
||||
options.access = with lib.types; {
|
||||
fqdn = mkOption {
|
||||
type = str;
|
||||
};
|
||||
hostName = mkOption {
|
||||
type = str;
|
||||
default = name;
|
||||
|
|
@ -138,6 +141,7 @@ in {
|
|||
hasLocal4 = hasLocal && local'interface.local.address4 or null != null;
|
||||
hasLocal6 = hasLocal && local'interface.local.address6 or null != null;
|
||||
in {
|
||||
fqdn = mkOptionDefault "${cfg.hostName}.${cfg.domain}";
|
||||
hostnameForNetwork = let
|
||||
int = "${cfg.hostName}.int.${cfg.domain}";
|
||||
local = "${cfg.hostName}.local.${cfg.domain}";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue