anchor.diff:          description = ''
             Whether IPFS should try to migrate the file system automatically.
           '';
  +      };
  +
  +      autoMount = mkOption {
  +        type = types.bool;
  +        default = false;
  +        description = "Whether IPFS should try to mount /ipfs and /ipns at startup.";
         };
   
         gatewayAddress = mkOption {
  
positive.code: 
    cfg = config.services.ipfs;
  
    ipfsFlags = ''${if cfg.autoMigrate then "--migrate" else ""} ${if cfg.enableGC then "--enable-gc" else ""} ${toString cfg.extraFlags}'';
  
    # Before Version 17.09, ipfs would always use "/var/lib/ipfs/.ipfs" as it's dataDir
    defaultDataDir = if versionAtLeast config.system.stateVersion "17.09" then
  
negative.code:   # Wrapping the ipfs binary with the environment variable IPFS_PATH set to dataDir because we can't set it in the user environment
    wrapped = runCommand "ipfs" { buildInputs = [ makeWrapper ]; } ''
      mkdir -p "$out/bin"
      makeWrapper "${ipfs}/bin/ipfs" "$out/bin/ipfs" \
        --set IPFS_PATH ${cfg.dataDir} \
        --prefix PATH : /run/wrappers/bin
    '';
  in
  
  