aboutsummaryrefslogtreecommitdiff
path: root/nix/deuxfleurs.nix
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2022-04-19 17:41:18 +0200
committerAlex Auvolat <alex@adnab.me>2022-04-19 17:41:18 +0200
commit3d8989b9c918bd4e4b1f8b9a8d294c308fc0b8d9 (patch)
tree6e06494880c55f758190d315528d6e6b20496b9d /nix/deuxfleurs.nix
parent65902d47800473a709c0c89ff2edfd3170b3c49c (diff)
downloadnixcfg-3d8989b9c918bd4e4b1f8b9a8d294c308fc0b8d9.tar.gz
nixcfg-3d8989b9c918bd4e4b1f8b9a8d294c308fc0b8d9.zip
nix infinite recursioninfinite-recursion
Diffstat (limited to 'nix/deuxfleurs.nix')
-rw-r--r--nix/deuxfleurs.nix12
1 files changed, 6 insertions, 6 deletions
diff --git a/nix/deuxfleurs.nix b/nix/deuxfleurs.nix
index a860a36..7772f0e 100644
--- a/nix/deuxfleurs.nix
+++ b/nix/deuxfleurs.nix
@@ -106,18 +106,18 @@ in
}) cfg.admin_accounts;
# Configure network interfaces
- networking.interfaces = attrsets.setAttrByPath [ config.deuxfleurs.network_interface ] {
+ networking.interfaces = attrsets.setAttrByPath [ cfg.network_interface ] {
useDHCP = false;
ipv4.addresses = [
{
- address = config.deuxfleurs.lan_ip;
- prefixLength = config.deuxfleurs.lan_ip_prefix_length;
+ address = cfg.lan_ip;
+ prefixLength = cfg.lan_ip_prefix_length;
}
];
};
networking.defaultGateway = {
- address = config.deuxfleurs.lan_default_gateway;
- interface = config.deuxfleurs.network_interface;
+ address = cfg.lan_default_gateway;
+ interface = cfg.network_interface;
};
# Configure Wireguard VPN between all nodes
@@ -128,7 +128,7 @@ in
peers = map ({ publicKey, endpoint, IP, site_name, lan_endpoint, ... }: {
publicKey = publicKey;
allowedIPs = [ "${IP}/32" ];
- endpoint = if site_name != null && site_name == config.deuxfleurs.site_name && lan_endpoint != null
+ endpoint = if site_name != null && site_name == cfg.site_name && lan_endpoint != null
then lan_endpoint else endpoint;
persistentKeepalive = 25;
}) (cfg.cluster_nodes ++ cfg.admin_nodes);