git.iko.soy/typeable/nixpkgs
on master help sign in
nixos/ipfs: replace deprecated command line option

According to https://docs.ipfs.io/reference/cli/#ipfs the --local command line option is deprecated and should be replaced with --offline.

commit2b02b34029e366c1712a1835402fc69b15902bfe authorLuflosi <luflosi@luflosi.de> dateMon 17 May 2021, 10:36 (5 years ago) parent5a18bbb
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;