From f2104f3192a64bf504d188d8dc7387024bee1011 Mon Sep 17 00:00:00 2001 From: Mohammad Rafiq Date: Thu, 12 Jun 2025 15:51:22 +0800 Subject: [PATCH] feat(system/users): add pubkey to root --- modules/nixos/system/users.nix | 1 + 1 file changed, 1 insertion(+) 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; }