feat: set ipv6 gustave

This commit is contained in:
Julien Malka 2024-05-22 15:08:31 +02:00
parent 358a8fe9c2
commit da5f1f82fd
Signed by: Luj
GPG key ID: 6FC74C847011FD83
2 changed files with 9 additions and 4 deletions

View file

@ -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 = {

View file

@ -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";