wrapper-manager/sandboxing/bubblewrap: fix options

This commit is contained in:
Gabriel Arazas 2024-08-10 21:28:01 +08:00
parent 456c5e771c
commit 20b483fda4
No known key found for this signature in database
GPG Key ID: 62104B43D00AA360

View File

@ -18,7 +18,6 @@
{ config, lib, pkgs, ... }:
let
inherit (pkgs) stdenv;
cfg = config.sandboxing.bubblewrap;
bubblewrapModuleFactory = { isGlobal ? false }: {
@ -40,7 +39,7 @@ let
'';
};
enableNetwork = lib.mkEnableOption "sharing of the host network" // lib.optionalAttrs isGlobal {
enableNetwork = lib.mkEnableOption "sharing of the host network" // {
default = if isGlobal then true else cfg.enableNetwork;
};