From f5bb09221a44f3cf432714a550e176e7ded22023 Mon Sep 17 00:00:00 2001 From: uku Date: Thu, 18 Jan 2024 16:54:28 +0100 Subject: [PATCH] add exit node and ssh key to server --- modules/server.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/server.nix b/modules/server.nix index 5155ba7..5df410f 100644 --- a/modules/server.nix +++ b/modules/server.nix @@ -14,10 +14,15 @@ in { ../programs/starship.nix ]; + services.tailscale.extraUpFlags = ["--advertise-exit-node"]; + users.users."${username}" = { isNormalUser = true; shell = pkgs.fish; extraGroups = ["networkmanager" "wheel"]; hashedPasswordFile = config.age.secrets.userPassword.path; + openssh.authorizedKeys.keys = [ + "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIN+7+KfdOrhcnHayxvOENUeMx8rE4XEIV/AxMHiaNUP8" + ]; }; }