add authorized key for root

This commit is contained in:
Joakim Repomaa
2025-02-07 15:40:45 +02:00
committed by Joakim Repomaa
parent 9f446bc1f6
commit e2f8d1eeff

View File

@@ -92,6 +92,7 @@
packages = [ pkgs.nh ]; packages = [ pkgs.nh ];
openssh.authorizedKeys.keys = [ ssh.publicKeys.yubikey ]; openssh.authorizedKeys.keys = [ ssh.publicKeys.yubikey ];
}; };
users.users.root.openssh.authorizedKeys.keys = [ ssh.publicKeys.yubikey ];
nix.settings.trusted-users = [ "jokke" ]; nix.settings.trusted-users = [ "jokke" ];