aboutsummaryrefslogtreecommitdiff
path: root/nix/deuxfleurs.nix
diff options
context:
space:
mode:
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);