diff --git a/dafoe/configuration.nix b/dafoe/configuration.nix index 8f667d9..3c46077 100644 --- a/dafoe/configuration.nix +++ b/dafoe/configuration.nix @@ -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; diff --git a/dafoe/services/ssh.nix b/dafoe/services/ssh.nix index 7ded825..90a6d04 100644 --- a/dafoe/services/ssh.nix +++ b/dafoe/services/ssh.nix @@ -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; }