nixos/kubo: only set programs.fuse.userAllowOther if required

If `services.kubo.settings.Mounts.FuseAllowOther` is set to `false`, we don't need to set `programs.fuse.userAllowOther` to `true`.
This commit is contained in:
Luflosi
2025-10-22 17:36:29 +02:00
parent c327578e09
commit e4cdf3a3a1
@@ -339,7 +339,7 @@ in
boot.kernel.sysctl."net.core.rmem_max" = lib.mkDefault 2500000;
boot.kernel.sysctl."net.core.wmem_max" = lib.mkDefault 2500000;
programs.fuse = lib.mkIf cfg.autoMount {
programs.fuse = lib.mkIf (cfg.autoMount && cfg.settings.Mounts.FuseAllowOther) {
userAllowOther = true;
};