anchor.diff:        mkdir -p $out
   
         cp ${pkgs.dbus.out}/share/dbus-1/{system,session}.conf $out
  -
  -      # avoid circular includes
  -      sed -ri 's@(<include ignore_missing="yes">/etc/dbus-1/(system|session)\.conf</include>)@<!-- \1 -->@g' $out/{system,session}.conf
   
         # include by full path
         sed -ri "s@/etc/dbus-1/(system|session)-@$out/\1-@" $out/{system,session}.conf
  
positive.code: 
      environment.systemPackages = [ pkgs.dbus.daemon pkgs.dbus ];
  
      environment.etc = singleton
        { source = configDir;
          target = "dbus-1";
        };
  
      users.extraUsers.messagebus = {
        uid = config.ids.uids.messagebus;
        description = "D-Bus system message bus daemon user";
  
negative.code:         reloadIfChanged = true;
          restartTriggers = [ configDir ];
          serviceConfig.ExecStart = [
            "" # Default dbus.service has two entries, we need to override both.
            "${lib.getBin pkgs.dbus}/bin/dbus-daemon --config-file=/run/current-system/dbus/session.conf ${daemonArgs}"
          ];
        };
        sockets.dbus.wantedBy = mkIf cfg.socketActivated [ "sockets.target" ];
      };
  
      environment.pathsToLink = [ "/etc/dbus-1" "/share/dbus-1" ];
  
      system.extraSystemBuilderCmds = ''
        ln -s ${configDir} $out/dbus
      '';
    };
  }
  