aboutsummaryrefslogtreecommitdiff
path: root/nix
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2022-08-24 11:06:55 +0200
committerQuentin Dufour <quentin@deuxfleurs.fr>2022-08-24 11:06:55 +0200
commit9e39677e1d17ef03ea8ccb4feda15e2eb30be55a (patch)
tree5a5743ccdc3b1d2e84e079627ac9b01e8f224839 /nix
parente50e1c407d9a52cf78e0deae6cf79d5ba29c010c (diff)
downloadnixcfg-9e39677e1d17ef03ea8ccb4feda15e2eb30be55a.tar.gz
nixcfg-9e39677e1d17ef03ea8ccb4feda15e2eb30be55a.zip
Fix IPv6
Diffstat (limited to '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;