From c751c047f4a740e40ea4f086406c922d379b866b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kha=C3=AFs=20COLIN?= Date: Sat, 31 Aug 2024 19:15:00 +0200 Subject: [PATCH] feat: enable IPv6 networking --- configuration.nix | 3 +-- networking.nix | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 networking.nix diff --git a/configuration.nix b/configuration.nix index dddc5a1..2576194 100644 --- a/configuration.nix +++ b/configuration.nix @@ -5,6 +5,7 @@ in { lib, ... }: { imports = [ ./hardware-configuration.nix + ./networking.nix ./audit.nix ./openssh.nix @@ -36,9 +37,7 @@ in boot.tmp.cleanOnBoot = true; zramSwap.enable = true; - networking.hostName = "quasar"; users.users.root.initialPassword = "asunarovow"; - networking.domain = ""; nix.allowedUsers = [ "@wheel" "root" ]; console.keyMap = "us"; system.stateVersion = "23.11"; diff --git a/networking.nix b/networking.nix new file mode 100644 index 0000000..a719cda --- /dev/null +++ b/networking.nix @@ -0,0 +1,14 @@ +{ + networking.hostName = "quasar"; + networking.domain = ""; + networking.interfaces.ens18 = { + ipv6.addresses = [{ + address = "2a02:c206:2209:5178:0000:0000:0000:0001"; + prefixLength = 64; + }]; + }; + networking.defaultGateway6 = { + address = "fe80::1"; + interface = "ens18"; + }; +}