diff options
author | aszlig <aszlig@redmoonstudios.org> | 2015-03-20 20:58:13 +0100 |
---|---|---|
committer | aszlig <aszlig@redmoonstudios.org> | 2015-03-20 20:58:13 +0100 |
commit | ea2fd84ecd4139db82769dfeafe6da833146bb99 (patch) | |
tree | c91538708099b8a1c25c1f20e2b2f96e9d2e7c85 /nixos/modules/services/audio | |
parent | 2ed5c2bd6b437780a039c217a4bde52010a54519 (diff) | |
download | nixlib-ea2fd84ecd4139db82769dfeafe6da833146bb99.tar nixlib-ea2fd84ecd4139db82769dfeafe6da833146bb99.tar.gz nixlib-ea2fd84ecd4139db82769dfeafe6da833146bb99.tar.bz2 nixlib-ea2fd84ecd4139db82769dfeafe6da833146bb99.tar.lz nixlib-ea2fd84ecd4139db82769dfeafe6da833146bb99.tar.xz nixlib-ea2fd84ecd4139db82769dfeafe6da833146bb99.tar.zst nixlib-ea2fd84ecd4139db82769dfeafe6da833146bb99.zip |
nixos/mpd: Fix creation of "mpd" group.
The group is specified using a singleton list, so the loaOf merging is done by iterating through the list items with imap, so it enumerates every element and sets that as the default "name" attribute. From lib/types:143: name = elem.name or "unnamed-${toString defIdx}.${toString elemIdx}"; So, people get groups like "unnamed-X.Y" instead of "mpd". Signed-off-by: aszlig <aszlig@redmoonstudios.org> Reported-by: devhell <"^"@regexmail.net> Tested-by: devhell <"^"@regexmail.net>
Diffstat (limited to 'nixos/modules/services/audio')
-rw-r--r-- | nixos/modules/services/audio/mpd.nix | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/nixos/modules/services/audio/mpd.nix b/nixos/modules/services/audio/mpd.nix index 5afe5f8f46fe..d9b5bf7b5e6f 100644 --- a/nixos/modules/services/audio/mpd.nix +++ b/nixos/modules/services/audio/mpd.nix @@ -125,6 +125,7 @@ in { }); users.extraGroups = optionalAttrs (cfg.group == "mpd") (singleton { + name = "mpd"; gid = gid; }); }; |