1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-18 03:30:45 +00:00

nixos/userborn: convert users.users.<name>.home to string

If `opts.home` is not a string, an evaluation failure occurs in
`mapAttrs'`. Converting `opts.home` to string solves this issue.

The type of `users.users.<name>.home` is `lib.types.path`. Values
other than strings, e.g., derivations can also have the type
`lib.types.path`.
This commit is contained in:
Lin Yinfeng 2024-09-11 18:10:16 +08:00
parent d3fdfb473d
commit 33e796b66f
No known key found for this signature in database
GPG key ID: 46947CB61521FC42

View file

@ -97,7 +97,7 @@ in
# home.
tmpfiles.settings.home-directories = lib.mapAttrs' (
username: opts:
lib.nameValuePair opts.home {
lib.nameValuePair (toString opts.home) {
d = {
mode = opts.homeMode;
user = username;