openssh.authorizedKeys.keyFiles: allow multiple keys
Ugly hack to get around the error "a string that refers to a store path cannot be appended to a path". The underlying problem is that you cannot do "${./file1} ${./file2}" but you can do " ${./file1} ${./file2}" Obviously we should allow the first case as well.
This commit is contained in:
parent
7e77dae458
commit
57d74e6f4f
|
@ -90,7 +90,7 @@ let
|
|||
userLoop = flip concatMapStrings usersWithKeys (u:
|
||||
let
|
||||
authKeys = concatStringsSep "," u.openssh.authorizedKeys.keys;
|
||||
authKeyFiles = concatStringsSep " " u.openssh.authorizedKeys.keyFiles;
|
||||
authKeyFiles = concatStrings (map (x: " ${x}") u.openssh.authorizedKeys.keyFiles);
|
||||
preserveExisting = if u.openssh.authorizedKeys.preserveExistingKeys then "true" else "false";
|
||||
in ''
|
||||
mkAuthKeysFile "${u.name}" "${authKeys}" "${authKeyFiles}" "${preserveExisting}"
|
||||
|
|
Loading…
Reference in a new issue