anchor.diff:        };
   
       environment.systemPackages = [ cups ] ++ optional polkitEnabled cups-pk-helper;
  -
  -    environment.etc."cups/client.conf".text = cfg.clientConf;
  -    environment.etc."cups/cups-files.conf".source = cupsFilesFile;
  -    environment.etc."cups/cupsd.conf".source = cupsdFile;
  -    environment.etc."cups/cups-browsed.conf".source = browsedFile;
  -    environment.etc."cups/snmp.conf".text = cfg.snmpConf;
  +    environment.etc."cups".source = "/var/lib/cups";
   
       services.dbus.packages = [ cups ] ++ optional polkitEnabled cups-pk-helper;
   
  
positive.code: 
    browsedFile = writeConf "cups-browsed.conf" cfg.browsedConf;
  
  in
  
  {
  
negative.code: 
          preStart =
            ''
              mkdir -m 0700 -p /var/cache/cups
              mkdir -m 0700 -p /var/spool/cups
              mkdir -m 0755 -p ${cfg.tempDir}
  
              mkdir -m 0755 -p /var/lib/cups
              # Backwards compatibility
              if [ ! -L /etc/cups ]; then
                mv /etc/cups/* /var/lib/cups
                rmdir /etc/cups
                ln -s /var/lib/cups /etc/cups
              fi
              # First, clean existing symlinks
              if [ -n "$(ls /var/lib/cups)" ]; then
                for i in /var/lib/cups/*; do
                  [ -L "$i" ] && rm "$i"
                done
              fi
              # Then, populate it with static files
              cd ${rootdir}/etc/cups
              for i in *; do
                [ ! -e "/var/lib/cups/$i" ] && ln -s "${rootdir}/etc/cups/$i" "/var/lib/cups/$i"
              done
              ${optionalString cfg.gutenprint ''
                ${gutenprint}/bin/cups-genppdupdate
              ''}
            '';
        };
  
      systemd.services.cups-browsed = mkIf avahiEnabled
  