commit bc45df3c5cda5221e75bf53b49b37b3939cb6cb4 parent 2c06fdb22c7db74b911183c5be09fcf6abb9bb7a Author: MTRNord <mtrnord1@gmail.com> Date: Mon, 6 May 2024 17:38:54 +0200 Add root pubkey Diffstat:
| M | nixos/worker-2/configuration.nix | | | 7 | ++++++- |
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/nixos/worker-2/configuration.nix b/nixos/worker-2/configuration.nix @@ -403,7 +403,12 @@ in { extraGroups = ["wheel"]; shell = pkgs.zsh; }; - "root".hashedPasswordFile = config.sops.secrets.root_initial_password.path; + "root" = { + hashedPasswordFile = config.sops.secrets.root_initial_password.path; + openssh.authorizedKeys.keys = [ + "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKUzC9NeEc4voBeAO7YuQ1ewRKCS2iar4Bcm4cKoNKUH mtrnord@nordgedanken.dev" + ]; + }; "discourse" = { isNormalUser = false;