feat(system/users): add pubkey to root

This commit is contained in:
Mohammad Rafiq 2025-06-12 15:51:22 +08:00
parent fdae75fee6
commit f2104f3192
No known key found for this signature in database

View file

@ -19,6 +19,7 @@
extraGroups = [ "wheel" ];
openssh.authorizedKeys.keys = [ config.system.mainUser.publicKey ];
};
users.users.root.openssh.authorizedKeys.keys = lib.singleton config.system.mainUser.publicKey;
services.getty.autologinUser = config.system.mainUser.name;
security.sudo.wheelNeedsPassword = false;
}