From e946eb7b814d6697005e5c346d551c2e68e69eea Mon Sep 17 00:00:00 2001 From: Filippo Berto Date: Mon, 19 Dec 2022 23:28:19 +0100 Subject: [PATCH] Enable bertof keys for remote deploy --- nixos_modules/remote-deploy.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 [ ]; }