From 1759580a86fb7bdd41e4dd707faac0908ff27a8f Mon Sep 17 00:00:00 2001 From: Felix Stupp Date: Sat, 17 Aug 2024 09:49:33 +0000 Subject: [PATCH] nixos-mods/improvedDefs/sshAuth: fix assigning root auth keys --- nix/nixos-modules/improvedDefaults/sshAuthorize.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nix/nixos-modules/improvedDefaults/sshAuthorize.nix b/nix/nixos-modules/improvedDefaults/sshAuthorize.nix index ef4a00c..b32b2f9 100644 --- a/nix/nixos-modules/improvedDefaults/sshAuthorize.nix +++ b/nix/nixos-modules/improvedDefaults/sshAuthorize.nix @@ -55,7 +55,7 @@ in services.openssh.settings.PermitRootLogin = if isRootAuthed then true else lib.mkDefault false; - users.users.root.openssh.authorizedKeys = lib.mkIf doRootAuth (lib.mkDefault myOpts.sshPublicKeys); + users.users.root.openssh.authorizedKeys.keys = lib.mkIf doRootAuth (lib.mkDefault myOpts.sshPublicKeys); warnings = lib.mkIf doRootAuth [ '' root’s authorized keys were automatically configured