Hotfix inability to build when custom user don't have ssh keys

This commit is contained in:
Inex Code 2021-12-16 13:27:11 +03:00
parent 63aaeec08c
commit 3f42ad5c68

View file

@ -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);