anchor.diff:  { config, lib, pkgs, ... }:
   
  +with pkgs.lib;
   let
     cfg = config.services.notbit;
     varDir = "/var/lib/notbit";
  
positive.code:         description = "Set the nice level for the notbit daemon";
        };
  
      };
  
    };
  
negative.code:         --set XDG_RUNTIME_DIR ${varDir}
      '';
    };
    opts = "${optionalString cfg.allowPrivateAddresses "-L"} ${optionalString cfg.noBootstrap "-b"} ${optionalString cfg.specifiedPeersOnly "-e"}";
    peers = concatStringsSep " " (map (str: "-P \"${str}\"") cfg.peers);
    listen = if cfg.listenAddress == [] then "-p ${toString cfg.port}" else
      concatStringsSep " " (map (addr: "-a \"${addr}:${toString cfg.port}\"") cfg.listenAddress);
  in
  
  with lib;
  