anchor.diff:        };
       };
   
  -    users.extraUsers = optionalAttrs (cfg.user == "mpd") (singleton {
  +    users.extraUsers = optionalAttrs (cfg.user == name) (singleton {
         inherit uid;
  -      name = "mpd";
  +      inherit name;
         group = cfg.group;
         extraGroups = [ "audio" ];
         description = "Music Player Daemon user";
         home = "${cfg.dataDir}";
       });
   
  -    users.extraGroups = optionalAttrs (cfg.group == "mpd") (singleton {
  -      name = "mpd";
  +    users.extraGroups = optionalAttrs (cfg.group == name) (singleton {
  +      inherit name;
         gid = gid;
       });
     };
  
positive.code: 
        user = mkOption {
          type = types.str;
          default = "mpd";
          description = "User account under which MPD runs.";
        };
  
        group = mkOption {
          type = types.str;
          default = "mpd";
          description = "Group account under which MPD runs.";
        };
  
  
negative.code:         description = ''
            Extra directives added to to the end of MPD's configuration file,
            mpd.conf. Basic configuration like file location and uid/gid
            is added automatically to the beginning of the file. For available
            options see <literal>man 5 mpd.conf</literal>'.
          '';
        };
  
        dataDir = mkOption {
          type = types.path;
          default = "/var/lib/${name}";
          description = ''
            The directory where MPD stores its state, tag cache,
            playlists etc.
  