Unverified Commit 2063f110 authored by Sandro Jäckel's avatar Sandro Jäckel Committed by GitHub
Browse files

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

nixos/kubo: add Mounts.FuseAllowOther setting for better documentation of the default value (#454579)
parents 309b96dc e4cdf3a3
Loading
Loading
Loading
Loading
+7 −5
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 = ''
@@ -333,7 +339,7 @@ in
    boot.kernel.sysctl."net.core.rmem_max" = lib.mkDefault 7500000;
    boot.kernel.sysctl."net.core.wmem_max" = lib.mkDefault 7500000;

    programs.fuse = lib.mkIf cfg.autoMount {
    programs.fuse = lib.mkIf (cfg.autoMount && cfg.settings.Mounts.FuseAllowOther) {
      userAllowOther = true;
    };

@@ -366,10 +372,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"