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:
parent
d3fdfb473d
commit
33e796b66f
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue