anchor.diff:          RestartSec = 1;
         };
       };
  +
  +    systemd.services.ipfs-norouting = {
  +      description = "IPFS Daemon (no routing mode)";
  +
  +      wantedBy = mkIf (cfg.defaultMode == "norouting") [ "multi-user.target" ];
  +
  +      after = [ "local-fs.target" "ipfs-init.service" ];
  +
  +      conflicts = [ "ipfs.service" "ipfs-offline.service"];
  +      wants = [ "ipfs-init.service" ];
  +
  +      environment.IPFS_PATH = cfg.dataDir;
  +
  +      path  = [ pkgs.ipfs ];
  +
  +      serviceConfig = {
  +        ExecStart = "${ipfs}/bin/ipfs daemon ${ipfsFlags} --routing=none";
  +        User = cfg.user;
  +        Group = cfg.group;
  +        Restart = "on-failure";
  +        RestartSec = 1;
  +      };
  +    };
  +
     };
   }
  
positive.code:         type = types.str;
          default = defaultDataDir;
          description = "The data dir for IPFS";
        };
  
        autoMigrate = mkOption {
  
negative.code:     systemd.services.ipfs-offline = {
        description = "IPFS Daemon (offline mode)";
  
        wantedBy = mkIf (cfg.defaultMode == "offline") [ "multi-user.target" ];
  
        after = [ "local-fs.target" "ipfs-init.service" ];
  
        conflicts = [ "ipfs.service" "ipfs-norouting.service"];
        wants = [ "ipfs-init.service" ];
  
        environment.IPFS_PATH = cfg.dataDir;
  