diff --git a/modules/nixos/system/users.nix b/modules/nixos/system/users.nix index 4f832aa..fa7cb84 100644 --- a/modules/nixos/system/users.nix +++ b/modules/nixos/system/users.nix @@ -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; }