From 9e39677e1d17ef03ea8ccb4feda15e2eb30be55a Mon Sep 17 00:00:00 2001 From: Quentin Dufour Date: Wed, 24 Aug 2022 11:06:55 +0200 Subject: Fix IPv6 --- nix/deuxfleurs.nix | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'nix') 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; -- cgit v1.2.3