ipv6 for server

This commit is contained in:
thiloho
2023-07-26 14:24:43 +02:00
parent ceaa04748d
commit 15e554763a

View File

@@ -29,6 +29,19 @@
settings.PasswordAuthentication = false; 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 = [ users.users.thiloho.openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAy1KnXinQJNcGpWTe1jifNuUEfKZRmyshVX5fPEWR19 thiloho@pc" "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAy1KnXinQJNcGpWTe1jifNuUEfKZRmyshVX5fPEWR19 thiloho@pc"
]; ];