Unverified Commit c327578e authored by Luflosi's avatar Luflosi
Browse files

nixos/kubo: add Mounts.FuseAllowOther setting for better documentation of the default value

The `Mounts.FuseAllowOther` setting could be used before to override the default but it was not obvious that the default was `true`.

Since this option is irrelevant if the `--mount` flag isn't passed to the daemon (the `autoMount` NixOS option is set to false) the Kubo daemon ignores this setting in this case. This means enabling this option conditionally or not makes no difference in practice, so it might as well be enabled all the time.
parent f991670e
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -242,6 +242,12 @@ in
              default = "/mfs";
              description = "Where to mount the MFS namespace to";
            };

            Mounts.FuseAllowOther = lib.mkOption {
              type = lib.types.bool;
              default = true;
              description = "Allow all users to access the FUSE mount points";
            };
          };
        };
        description = ''
@@ -369,10 +375,6 @@ in
    systemd.packages =
      if cfg.autoMount then [ cfg.package.systemd_unit ] else [ cfg.package.systemd_unit_hardened ];

    services.kubo.settings = lib.mkIf cfg.autoMount {
      Mounts.FuseAllowOther = lib.mkDefault true;
    };

    systemd.services.ipfs = {
      path = [
        "/run/wrappers"