diff --git a/nixos_modules/remote-deploy.nix b/nixos_modules/remote-deploy.nix index f57e5eb..087d6c4 100644 --- a/nixos_modules/remote-deploy.nix +++ b/nixos_modules/remote-deploy.nix @@ -1,4 +1,4 @@ -{ +{ config, ... }: { services.openssh = { enable = true; openFirewall = true; @@ -7,4 +7,6 @@ passwordAuthentication = false; kbdInteractiveAuthentication = false; }; + + users.users.root.openssh.authorizedKeys.keys = config.users.users.bertof.openssh.authorizedKeys.keys or [ ]; }