From 15e554763af9b17a3b5ecc1d8cf94ab058a94572 Mon Sep 17 00:00:00 2001 From: thiloho <123883702+thiloho@users.noreply.github.com> Date: Wed, 26 Jul 2023 14:24:43 +0200 Subject: [PATCH] ipv6 for server --- nixos-configurations/server/default.nix | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/nixos-configurations/server/default.nix b/nixos-configurations/server/default.nix index 31301e7..5e6b933 100644 --- a/nixos-configurations/server/default.nix +++ b/nixos-configurations/server/default.nix @@ -29,6 +29,19 @@ settings.PasswordAuthentication = false; }; + networking = { + interfaces = { + ens3.ipv6.addresses = [{ + address = "2a01:4f8:c2c:4bc::1"; + prefixLength = 64; + }]; + }; + defaultGateway6 = { + address = "fe80::1"; + interface = "ens3"; + }; + }; + users.users.thiloho.openssh.authorizedKeys.keys = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAy1KnXinQJNcGpWTe1jifNuUEfKZRmyshVX5fPEWR19 thiloho@pc" ];