anchor.diff:          type = types.str;
           default = defaultDataDir;
           description = "The data dir for IPFS";
  +      };
  +
  +      defaultMode = mkOption {
  +        description = "systemd service that is enabled by default";
  +        type = types.enum [ "online" "offline" "norouting" ];
  +        default = "online";
         };
   
         autoMigrate = mkOption {
  
positive.code:         RestartSec = 1;
        };
      };
    };
  }
  
negative.code:     systemd.services.ipfs = {
        description = "IPFS Daemon";
  
        wantedBy = mkIf (cfg.defaultMode == "online") [ "multi-user.target" ];
  
        after = [ "network.target" "local-fs.target" "ipfs-init.service" ];
  
        conflicts = [ "ipfs-offline.service" "ipfs-norouting.service"];
        wants = [ "ipfs-init.service" ];
  
        environment.IPFS_PATH = cfg.dataDir;
  