aboutsummaryrefslogtreecommitdiff
path: root/nix/deuxfleurs.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nix/deuxfleurs.nix')
-rw-r--r--nix/deuxfleurs.nix11
1 files changed, 10 insertions, 1 deletions
diff --git a/nix/deuxfleurs.nix b/nix/deuxfleurs.nix
index 8be16af..7c2919c 100644
--- a/nix/deuxfleurs.nix
+++ b/nix/deuxfleurs.nix
@@ -79,7 +79,11 @@ in
# Parameters that generally vary between sites
lan_default_gateway = mkOption {
- description = "IP address of the default route on the locak network interface";
+ description = "IPv4 address of the default route on the local network interface";
+ type = types.str;
+ };
+ ipv6_default_gateway = mkOption {
+ description = "IPv6 address of the default IPv6 gateway for the targeted net interface";
type = types.str;
};
site_name = mkOption {
@@ -151,6 +155,11 @@ in
interface = cfg.network_interface;
};
+ networking.defaultGateway6 = {
+ address = cfg.ipv6_default_gateway;
+ interface = cfg.network_interface;
+ };
+
networking.nameservers = [
cfg.lan_ip
] ++ cfg.nameservers;