mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-02-07 12:19:07 +00:00
hosts/plover: refactor bindings
This commit is contained in:
parent
c3ff202b84
commit
b31cc58adc
@ -2,16 +2,11 @@
|
|||||||
|
|
||||||
let
|
let
|
||||||
inherit (config.networking) domain fqdn;
|
inherit (config.networking) domain fqdn;
|
||||||
inherit (import ../hardware/networks.nix) privateIPv6Prefix interfaces clientNetworks serverNetworks secondaryNameServers wireguardPeers;
|
inherit (import ../hardware/networks.nix) interfaces clientNetworks serverNetworks secondaryNameServers;
|
||||||
secondaryNameServersIPv4 = lib.foldl'
|
secondaryNameServersIPs = lib.foldl'
|
||||||
(total: addresses: total ++ addresses.IPv4)
|
(total: addresses: total ++ addresses.IPv4 ++ addresses.IPv6)
|
||||||
[ ]
|
[ ]
|
||||||
(lib.attrValues secondaryNameServers);
|
(lib.attrValues secondaryNameServers);
|
||||||
secondaryNameServersIPv6 = lib.foldl'
|
|
||||||
(total: addresses: total ++ addresses.IPv6)
|
|
||||||
[ ]
|
|
||||||
(lib.attrValues secondaryNameServers);
|
|
||||||
secondaryNameServersIPs = secondaryNameServersIPv4 ++ secondaryNameServersIPv6;
|
|
||||||
|
|
||||||
domainZone = pkgs.substituteAll {
|
domainZone = pkgs.substituteAll {
|
||||||
src = ../../config/dns/${domain}.zone;
|
src = ../../config/dns/${domain}.zone;
|
||||||
|
Loading…
Reference in New Issue
Block a user