diff --git a/users.nix b/users.nix index acc5636..a3128b2 100644 --- a/users.nix +++ b/users.nix @@ -17,7 +17,7 @@ in value = { isNormalUser = true; hashedPassword = user.hashedPassword; - openssh.authorizedKeys.keys = user.sshKeys; + openssh.authorizedKeys.keys = (if user ? sshKeys then user.sshKeys else []); }; }) cfg.users);