mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-02-07 12:19:07 +00:00
wrapper-manager/sandboxing/bubblewrap: fix options
This commit is contained in:
parent
456c5e771c
commit
20b483fda4
@ -18,7 +18,6 @@
|
|||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
inherit (pkgs) stdenv;
|
|
||||||
cfg = config.sandboxing.bubblewrap;
|
cfg = config.sandboxing.bubblewrap;
|
||||||
|
|
||||||
bubblewrapModuleFactory = { isGlobal ? false }: {
|
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;
|
default = if isGlobal then true else cfg.enableNetwork;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user