]> git.immae.eu Git - perso/Immae/Config/Nix.git/commitdiff
Add ipv6 configuration for zoldene
authorIsmaël Bouya <ismael.bouya@normalesup.org>
Sat, 24 Feb 2024 11:05:51 +0000 (12:05 +0100)
committerIsmaël Bouya <ismael.bouya@normalesup.org>
Sat, 24 Feb 2024 11:30:51 +0000 (12:30 +0100)
deploy/flake.lock
flake.lock
flakes/flake.lock
systems/zoldene/base.nix

index 1b64653a68578216412d576a0351b5e75d943826..d4fc017ed4208f7f899034c41d5e94e196fb6ce6 100644 (file)
       },
       "locked": {
         "lastModified": 1,
-        "narHash": "sha256-eMtBwFev8mR4UddJmG/pTlS2Xh4/LTckEpdiz3a2cOk=",
+        "narHash": "sha256-RMKq47gsekcw+bpRXj4Es8p3bBCNg4tmDqcg8PAbovs=",
         "path": "../flakes",
         "type": "path"
       },
       },
       "locked": {
         "lastModified": 1,
-        "narHash": "sha256-NjuGFIxBJ3hIxk2fnZeQOvWa+jDHbGsIRpKT5I+cRz4=",
+        "narHash": "sha256-ozjB87SNwkQLQH2nkkIQJqC3HoewYe1z1PoyiNGmtcM=",
         "path": "../systems/zoldene",
         "type": "path"
       },
index f08268674b4218d02c4966902adbb14d865debea..c8ffd7d03ddd76a5958d0ba71e68f73b11b74e67 100644 (file)
       },
       "locked": {
         "lastModified": 1,
-        "narHash": "sha256-eMtBwFev8mR4UddJmG/pTlS2Xh4/LTckEpdiz3a2cOk=",
+        "narHash": "sha256-RMKq47gsekcw+bpRXj4Es8p3bBCNg4tmDqcg8PAbovs=",
         "path": "./flakes",
         "type": "path"
       },
       },
       "locked": {
         "lastModified": 1,
-        "narHash": "sha256-NjuGFIxBJ3hIxk2fnZeQOvWa+jDHbGsIRpKT5I+cRz4=",
+        "narHash": "sha256-ozjB87SNwkQLQH2nkkIQJqC3HoewYe1z1PoyiNGmtcM=",
         "path": "../systems/zoldene",
         "type": "path"
       },
index 359762af64376e872dafb4b95c2a6f4bad1f4208..d6e655ed5914489b0933bb4d3d297cc948cd1cf8 100644 (file)
       },
       "locked": {
         "lastModified": 1,
-        "narHash": "sha256-NjuGFIxBJ3hIxk2fnZeQOvWa+jDHbGsIRpKT5I+cRz4=",
+        "narHash": "sha256-ozjB87SNwkQLQH2nkkIQJqC3HoewYe1z1PoyiNGmtcM=",
         "path": "../systems/zoldene",
         "type": "path"
       },
index 2751d631b07d178cb05fc316039e26668faae21b..fc0d68a2d7a7fe9d7511321be25cdba21e2c9374 100644 (file)
@@ -84,6 +84,19 @@ in
     firewall.allowedUDPPorts = [ 43484 ];
     # needed for initrd proper network setup too
     useDHCP = lib.mkDefault true;
+    interfaces."enp0s31f6".ipv6.addresses = pkgs.lib.flatten (pkgs.lib.attrsets.mapAttrsToList
+      (n: ips: map (ip: { address = ip; prefixLength = (if n == "main" && ip == pkgs.lib.head ips.ip6 then 64 else 128); }) (ips.ip6 or []))
+      config.hostEnv.ips);
+    defaultGateway6 = {
+      address = "fe80::1";
+      interface = "enp0s31f6";
+    };
+    nameservers = [
+      "185.12.64.1"
+      "185.12.64.2"
+      "2a01:4ff:ff00::add:1"
+      "2a01:4ff:ff00::add:2"
+    ];
 
     wireguard.interfaces.wg0 = {
       generatePrivateKeyFile = true;