git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #123334 from Luflosi/ipfs-replace-deprecated-option
commit993a67821705151cf0a196581b3bbabfeb14560b authorSandro <sandro.jaeckel@gmail.com> dateThu 1 Jul 2021, 03:03 (5 years ago) parenteadc6682b02b34
1 file changed+4−4
nixos/modules/services/network-filesystems/ipfs.nix+4−4
nixos/modules/services/network-filesystems/ipfs.nix+4−4
@@ -231,9 +231,9 @@ in {
231231 }
232232 fi
233233 '' + optionalString cfg.autoMount ''
234− ipfs --local config Mounts.FuseAllowOther --json true
235− ipfs --local config Mounts.IPFS ${cfg.ipfsMountDir}
236− ipfs --local config Mounts.IPNS ${cfg.ipnsMountDir}
234+ ipfs --offline config Mounts.FuseAllowOther --json true
235+ ipfs --offline config Mounts.IPFS ${cfg.ipfsMountDir}
236+ ipfs --offline config Mounts.IPNS ${cfg.ipnsMountDir}
237237 '' + concatStringsSep "\n" (collect
238238 isString
239239 (mapAttrsRecursive
@@ -243,7 +243,7 @@ in {
243243 read value <<EOF
244244 ${builtins.toJSON value}
245245 EOF
246− ipfs --local config --json "${concatStringsSep "." path}" "$value"
246+ ipfs --offline config --json "${concatStringsSep "." path}" "$value"
247247 '')
248248 ({ Addresses.API = cfg.apiAddress;
249249 Addresses.Gateway = cfg.gatewayAddress;