···396396 # blockstore-only duplicates of files that already live in
397397 # /var/lib/ipfs/download.
398398 environment.systemPackages = [
399399- (lib.hiPrio (pkgs.writeShellScriptBin "ipfs" ''
400400- if [ "''${1-}" = "add" ]; then
401401- for a in "$@"; do
402402- case "$a" in
403403- --nocopy|--nocopy=true) exec ${pkgs.kubo}/bin/ipfs "$@" ;;
404404- esac
405405- done
406406- echo "refused: 'ipfs add' without --nocopy is forbidden on this host." >&2
407407- echo " Use 'ipfs add --nocopy <path>' so the file is referenced via filestore" >&2
408408- echo " instead of duplicated into the blockstore." >&2
409409- exit 1
410410- fi
411411- exec ${pkgs.kubo}/bin/ipfs "$@"
412412- ''))
399399+ (lib.hiPrio (
400400+ pkgs.writeShellScriptBin "ipfs" ''
401401+ if [ "''${1-}" = "add" ]; then
402402+ for a in "$@"; do
403403+ case "$a" in
404404+ --nocopy|--nocopy=true) exec ${pkgs.kubo}/bin/ipfs "$@" ;;
405405+ esac
406406+ done
407407+ echo "refused: 'ipfs add' without --nocopy is forbidden on this host." >&2
408408+ echo " Use 'ipfs add --nocopy <path>' so the file is referenced via filestore" >&2
409409+ echo " instead of duplicated into the blockstore." >&2
410410+ exit 1
411411+ fi
412412+ exec ${pkgs.kubo}/bin/ipfs "$@"
413413+ ''
414414+ ))
413415 ];
414416}