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:
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user