diff options
author | Luflosi <luflosi@luflosi.de> | 2023-05-10 19:49:42 +0200 |
---|---|---|
committer | Luflosi <luflosi@luflosi.de> | 2023-05-10 19:50:46 +0200 |
commit | ada7f14219b6cb50d766c28aa64164d17f8bc2d6 (patch) | |
tree | 75f9668561525fa39ac3f77f95d67f40af70d005 /nixos/modules/services/network-filesystems | |
parent | de9304172de3cd29723caa747d84bb49e09acc50 (diff) | |
download | nixlib-ada7f14219b6cb50d766c28aa64164d17f8bc2d6.tar nixlib-ada7f14219b6cb50d766c28aa64164d17f8bc2d6.tar.gz nixlib-ada7f14219b6cb50d766c28aa64164d17f8bc2d6.tar.bz2 nixlib-ada7f14219b6cb50d766c28aa64164d17f8bc2d6.tar.lz nixlib-ada7f14219b6cb50d766c28aa64164d17f8bc2d6.tar.xz nixlib-ada7f14219b6cb50d766c28aa64164d17f8bc2d6.tar.zst nixlib-ada7f14219b6cb50d766c28aa64164d17f8bc2d6.zip |
kubo: 0.19.2 -> 0.20.0
https://github.com/ipfs/kubo/releases/tag/v0.20.0 When creating a repository with `ipfs init`, `--empty-repo=true` is now the default according to the changelog. Modify the NixOS module to reflect this change and fix the `emptyRepo` setting to work with this change.
Diffstat (limited to 'nixos/modules/services/network-filesystems')
-rw-r--r-- | nixos/modules/services/network-filesystems/kubo.nix | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/nixos/modules/services/network-filesystems/kubo.nix b/nixos/modules/services/network-filesystems/kubo.nix index 2537bb1b8d80..a5c370b5be89 100644 --- a/nixos/modules/services/network-filesystems/kubo.nix +++ b/nixos/modules/services/network-filesystems/kubo.nix @@ -172,8 +172,8 @@ in emptyRepo = mkOption { type = types.bool; - default = false; - description = lib.mdDoc "If set to true, the repo won't be initialized with help files"; + default = true; + description = lib.mdDoc "If set to false, the repo will be initialized with help files"; }; settings = mkOption { @@ -331,7 +331,7 @@ in preStart = '' if [[ ! -f "$IPFS_PATH/config" ]]; then - ipfs init ${optionalString cfg.emptyRepo "-e"} + ipfs init --empty-repo=${lib.boolToString cfg.emptyRepo} else # After an unclean shutdown this file may exist which will cause the config command to attempt to talk to the daemon. This will hang forever if systemd is holding our sockets open. rm -vf "$IPFS_PATH/api" |