From da5f1f82fd9548e3aca2b277bb3dbda4b690b940 Mon Sep 17 00:00:00 2001 From: Julien Malka Date: Wed, 22 May 2024 15:08:31 +0200 Subject: [PATCH] feat: set ipv6 gustave --- lib/luj.nix | 7 +++++++ machines/gustave/default.nix | 6 ++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/lib/luj.nix b/lib/luj.nix index 8bbac84..904b125 100644 --- a/lib/luj.nix +++ b/lib/luj.nix @@ -116,6 +116,13 @@ let arch = "x86_64-linux"; nixpkgs_version = inputs.nixpkgs; hm_version = inputs.home-manager; + ipv4 = { + public = "82.67.34.230"; + local = "192.168.0.90"; + }; + ipv6 = { + public = "2a01:e0a:de4:a0e1:eb2:aaaa::45"; + }; }; core-security = { diff --git a/machines/gustave/default.nix b/machines/gustave/default.nix index ea66625..df0d3b0 100644 --- a/machines/gustave/default.nix +++ b/machines/gustave/default.nix @@ -1,4 +1,4 @@ -{ pkgs, lib, ... }: +{ pkgs, ... }: { imports = [ @@ -11,8 +11,6 @@ boot.loader.systemd-boot.enable = true; boot.loader.efi.canTouchEfiVariables = true; - deployment.targetHost = lib.mkForce "192.168.0.126"; - disko = import ./disko.nix; systemd.network.enable = true; @@ -25,7 +23,7 @@ # start a DHCP Client for IPv4 Addressing/Routing DHCP = "ipv4"; # accept Router Advertisements for Stateless IPv6 Autoconfiguraton (SLAAC) - IPv6AcceptRA = true; + Address = "2a01:e0a:de4:a0e1:eb2:aaaa::45"; }; # make routing on this interface a dependency for network-online.target linkConfig.RequiredForOnline = "routable";