anchor.diff:    opt = options.services.ipfs;
   
     ipfsFlags = toString ([
  -    (optionalString  cfg.autoMount                   "--mount")
  -    (optionalString  cfg.enableGC                    "--enable-gc")
  -    (optionalString (cfg.serviceFdlimit != null)     "--manage-fdlimit=false")
  -    (optionalString (cfg.defaultMode == "offline")   "--offline")
  +    (optionalString cfg.autoMount "--mount")
  +    (optionalString cfg.enableGC "--enable-gc")
  +    (optionalString (cfg.serviceFdlimit != null) "--manage-fdlimit=false")
  +    (optionalString (cfg.defaultMode == "offline") "--offline")
       (optionalString (cfg.defaultMode == "norouting") "--routing=none")
     ] ++ cfg.extraFlags);
   
     splitMulitaddr = addrRaw: lib.tail (lib.splitString "/" addrRaw);
   
  -  multiaddrToListenStream = addrRaw: let
  +  multiaddrToListenStream = addrRaw:
  +    let
         addr = splitMulitaddr addrRaw;
         s = builtins.elemAt addr;
  -    in if s 0 == "ip4" && s 2 == "tcp"
  -      then "${s 1}:${s 3}"
  +    in
  +    if s 0 == "ip4" && s 2 == "tcp"
  +    then "${s 1}:${s 3}"
       else if s 0 == "ip6" && s 2 == "tcp"
  -      then "[${s 1}]:${s 3}"
  +    then "[${s 1}]:${s 3}"
       else if s 0 == "unix"
  -      then "/${lib.concatStringsSep "/" (lib.tail addr)}"
  +    then "/${lib.concatStringsSep "/" (lib.tail addr)}"
       else null; # not valid for listen stream, skip
   
  -  multiaddrToListenDatagram = addrRaw: let
  +  multiaddrToListenDatagram = addrRaw:
  +    let
         addr = splitMulitaddr addrRaw;
         s = builtins.elemAt addr;
  -    in if s 0 == "ip4" && s 2 == "udp"
  -      then "${s 1}:${s 3}"
  +    in
  +    if s 0 == "ip4" && s 2 == "udp"
  +    then "${s 1}:${s 3}"
       else if s 0 == "ip6" && s 2 == "udp"
  -      then "[${s 1}]:${s 3}"
  +    then "[${s 1}]:${s 3}"
       else null; # not valid for listen datagram, skip
   
  -in {
  +in
  +{
   
     ###### interface
   
  
positive.code: 
        dataDir = mkOption {
          type = types.str;
          default = if versionAtLeast config.system.stateVersion "17.09"
                    then "/var/lib/ipfs"
                    else "/var/lib/ipfs/.ipfs";
          description = "The data dir for IPFS";
        };
  
  
negative.code:         type = types.nullOr types.int;
          default = null;
          description = "The fdlimit for the IPFS systemd unit or <literal>null</literal> to have the daemon attempt to manage it";
          example = 64 * 1024;
        };
  
        startWhenNeeded = mkOption {
  