This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

machines.neoprism: forbid ipfs add iwthout --nocopy

+16 -14
+16 -14
2configs/services/flix/ipfs.nix
··· 396 396 # blockstore-only duplicates of files that already live in 397 397 # /var/lib/ipfs/download. 398 398 environment.systemPackages = [ 399 - (lib.hiPrio (pkgs.writeShellScriptBin "ipfs" '' 400 - if [ "''${1-}" = "add" ]; then 401 - for a in "$@"; do 402 - case "$a" in 403 - --nocopy|--nocopy=true) exec ${pkgs.kubo}/bin/ipfs "$@" ;; 404 - esac 405 - done 406 - echo "refused: 'ipfs add' without --nocopy is forbidden on this host." >&2 407 - echo " Use 'ipfs add --nocopy <path>' so the file is referenced via filestore" >&2 408 - echo " instead of duplicated into the blockstore." >&2 409 - exit 1 410 - fi 411 - exec ${pkgs.kubo}/bin/ipfs "$@" 412 - '')) 399 + (lib.hiPrio ( 400 + pkgs.writeShellScriptBin "ipfs" '' 401 + if [ "''${1-}" = "add" ]; then 402 + for a in "$@"; do 403 + case "$a" in 404 + --nocopy|--nocopy=true) exec ${pkgs.kubo}/bin/ipfs "$@" ;; 405 + esac 406 + done 407 + echo "refused: 'ipfs add' without --nocopy is forbidden on this host." >&2 408 + echo " Use 'ipfs add --nocopy <path>' so the file is referenced via filestore" >&2 409 + echo " instead of duplicated into the blockstore." >&2 410 + exit 1 411 + fi 412 + exec ${pkgs.kubo}/bin/ipfs "$@" 413 + '' 414 + )) 413 415 ]; 414 416 }