diff options
author | Luflosi <luflosi@luflosi.de> | 2021-05-17 10:36:56 +0200 |
---|---|---|
committer | Luflosi <luflosi@luflosi.de> | 2021-06-30 17:32:38 +0200 |
commit | 2b02b34029e366c1712a1835402fc69b15902bfe (patch) | |
tree | 4104fc082700719add65b5d19df9cad61893acff /nixos/modules/services/network-filesystems/ipfs.nix | |
parent | 5a18bbb4fa314b606bd0bcc774ab720100404b7f (diff) | |
download | nixpkgs-2b02b34029e366c1712a1835402fc69b15902bfe.tar nixpkgs-2b02b34029e366c1712a1835402fc69b15902bfe.tar.gz nixpkgs-2b02b34029e366c1712a1835402fc69b15902bfe.tar.bz2 nixpkgs-2b02b34029e366c1712a1835402fc69b15902bfe.tar.lz nixpkgs-2b02b34029e366c1712a1835402fc69b15902bfe.tar.xz nixpkgs-2b02b34029e366c1712a1835402fc69b15902bfe.tar.zst nixpkgs-2b02b34029e366c1712a1835402fc69b15902bfe.zip |
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.
Diffstat (limited to 'nixos/modules/services/network-filesystems/ipfs.nix')
-rw-r--r-- | nixos/modules/services/network-filesystems/ipfs.nix | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/nixos/modules/services/network-filesystems/ipfs.nix b/nixos/modules/services/network-filesystems/ipfs.nix index 6d8dfcce933..2748571be1f 100644 --- a/nixos/modules/services/network-filesystems/ipfs.nix +++ b/nixos/modules/services/network-filesystems/ipfs.nix @@ -231,9 +231,9 @@ in { } fi '' + optionalString cfg.autoMount '' - ipfs --local config Mounts.FuseAllowOther --json true - ipfs --local config Mounts.IPFS ${cfg.ipfsMountDir} - ipfs --local config Mounts.IPNS ${cfg.ipnsMountDir} + ipfs --offline config Mounts.FuseAllowOther --json true + ipfs --offline config Mounts.IPFS ${cfg.ipfsMountDir} + ipfs --offline config Mounts.IPNS ${cfg.ipnsMountDir} '' + concatStringsSep "\n" (collect isString (mapAttrsRecursive @@ -243,7 +243,7 @@ in { read value <<EOF ${builtins.toJSON value} EOF - ipfs --local config --json "${concatStringsSep "." path}" "$value" + ipfs --offline config --json "${concatStringsSep "." path}" "$value" '') ({ Addresses.API = cfg.apiAddress; Addresses.Gateway = cfg.gatewayAddress; |