anchor.diff:      RestartForceExitStatus="3 4";
     };
   
  +  iNotifyHeader = {
  +    description = "Syncthing Inotify File Watcher service";
  +    after = [ "network.target" "syncthing.service" ];
  +    requires = [ "syncthing.service" ];
  +  };
  +
  +  iNotifyService = {
  +    SuccessExitStatus = "2";
  +    RestartForceExitStatus = "3";
  +    Restart = "on-failure";
  +  };
  +
   in
   
   {
  
positive.code:         config.ids.gids.syncthing;
      };
  
      environment.systemPackages = [ cfg.package ];
  
      systemd.services = mkIf cfg.systemService {
        syncthing = header // {
          wantedBy = [ "multi-user.target" ];
          serviceConfig = service // {
            User = cfg.user;
            Group = cfg.group;
            PermissionsStartOnly = true;
            ExecStart = "${cfg.package}/bin/syncthing -no-browser -home=${cfg.dataDir}";
          };
        };
      };
  
      systemd.user.services.syncthing =
        header // {
          wantedBy = [ "default.target" ];
          serviceConfig = service // {
            ExecStart = "${cfg.package}/bin/syncthing -no-browser";
          };
        };
  
    };
  }
  
negative.code:         to Dropbox and Bittorrent Sync. Initial interface will be
          available on http://127.0.0.1:8384/.
        '';
  
        useInotify = mkOption {
          type = types.bool;
          default = false;
          description = "Provide syncthing-inotify as a service.";
        };
  
        systemService = mkOption {
          type = types.bool;
  