ssh update
This commit is contained in:
parent
7531df47f6
commit
2d81bfb81c
2 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue