summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorSandro <sandro.jaeckel@gmail.com>2023-05-21 17:15:22 +0200
committerGitHub <noreply@github.com>2023-05-21 17:15:22 +0200
commit59cb287790cfeb74977a1d9e9c01ccc4eea894da (patch)
treef4ac62226490e6a5655cb606cd2faedb43e546bc /nixos
parentb069eeaa9675360810982f4af8dc61d1ed178bf8 (diff)
parentada7f14219b6cb50d766c28aa64164d17f8bc2d6 (diff)
Merge pull request #231260 from Luflosi/update/kubo
kubo: 0.19.2 -> 0.20.0
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/services/network-filesystems/kubo.nix6
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 2537bb1b8d80f..a5c370b5be895 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"