From 559d573dca771dad7bb22de58bb0c28dbc8eea80 Mon Sep 17 00:00:00 2001 From: Kevin Kandlbinder Date: Sat, 13 May 2023 20:25:29 +0200 Subject: [PATCH] Add IPv6 --- nixos/amon/configuration.nix | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/nixos/amon/configuration.nix b/nixos/amon/configuration.nix index 8c76033..29b8b9f 100644 --- a/nixos/amon/configuration.nix +++ b/nixos/amon/configuration.nix @@ -13,9 +13,26 @@ networking.hostName = "amon"; networking.domain = "srv.1in9.net"; - + networking.enableIPv6 = true; + networking.interfaces.enp1s0 = { + ipv4.addresses = [ + { + address = "128.140.94.180"; + prefixLength = 32; + } + ]; + ipv6.addresses = [ + { + address = "2a01:4f8:c17:6ccc::"; + prefixLength = 64; + } + ]; + }; + time.timeZone = "Europe/Berlin"; + + i18n.defaultLocale = "en_US.UTF-8"; console = { font = "Lat2-Terminus16";