ssh update

This commit is contained in:
Leon Vatthauer 2024-08-30 21:45:11 +02:00
parent 7531df47f6
commit 2d81bfb81c
Signed by: leonv
SSH key fingerprint: SHA256:G4+ddwoZmhLPRB1agvXzZMXIzkVJ36dUYZXf5NxT+u8
2 changed files with 4 additions and 4 deletions

View file

@ -46,6 +46,10 @@
extraGroups = [ "wheel" "nginx" ]; # Enable 'sudo' for the user.
packages = with pkgs; [
];
openssh.authorizedKeys.keys = [
"${../nix-secrets/dafoe/ssh/gunther}"
"${../nix-secrets/dafoe/ssh/absol}"
];
};
users.defaultUserShell = pkgs.zsh;

View file

@ -1,10 +1,6 @@
{
# Enable the OpenSSH daemon.
services.openssh.enable = true;
users.users.leonv.openssh.authorizedKeys.keys = [
"${../../nix-secrets/dafoe/ssh/gunther}"
"${../../nix-secrets/dafoe/ssh/absol}"
];
# Enable fail2ban to make ssh more secure
services.fail2ban.enable = true;
}