mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 04:19:19 -08:00
fix(ct): dns settings
This commit is contained in:
parent
0af904a9f2
commit
b5787ec783
4 changed files with 15 additions and 3 deletions
|
|
@ -26,7 +26,11 @@
|
|||
"hostName": "ct",
|
||||
"networks": {
|
||||
"int": null,
|
||||
"local": null,
|
||||
"local": {
|
||||
"address4": null,
|
||||
"address6": null,
|
||||
"macAddress": null
|
||||
},
|
||||
"tail": null
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -38,8 +38,9 @@
|
|||
mkHostRecordPair = network: system: let
|
||||
address4 = system.config.network.networks.${network}.address4 or null;
|
||||
address6 = system.config.network.networks.${network}.address6 or null;
|
||||
fqdn = system.config.network.networks.${network}.fqdn or null;
|
||||
in nameValuePair
|
||||
system.config.network.networks.${network}.fqdn or "${network}.${system.config.access.fqdn}"
|
||||
(if fqdn != null then fqdn else "${network}.${system.config.access.fqdn}")
|
||||
(concatStringsSep "," (
|
||||
lib.optional (address4 != null)
|
||||
(toString address4)
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
...
|
||||
}: let
|
||||
inherit (lib.modules) mkIf mkBefore mkOrder;
|
||||
enableDns = !config.services.dnsmasq.enable && config.networking.hostName != "utsuho" && config.networking.hostName != "ct";
|
||||
enableDns = !config.services.dnsmasq.enable && config.networking.hostName != "utsuho";
|
||||
in {
|
||||
imports = let
|
||||
inherit (meta) nixos;
|
||||
|
|
|
|||
|
|
@ -4,4 +4,11 @@ _: {
|
|||
modules = [
|
||||
./nixos.nix
|
||||
];
|
||||
network.networks = {
|
||||
local = {
|
||||
fqdn = null;
|
||||
address4 = null;
|
||||
address6 = null;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue