Skip to content

Commit

Permalink
add exit node and ssh key to server
Browse files Browse the repository at this point in the history
  • Loading branch information
uku3lig committed Jan 18, 2024
1 parent 2c0cd86 commit f5bb092
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions modules/server.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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"
];
};
}

0 comments on commit f5bb092

Please sign in to comment.