mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-02-07 18:19:09 +00:00
wrapper-manager/sandboxing/bubblewrap: add option to bundle certificates from nixpkgs
This commit is contained in:
parent
a6c8213d57
commit
5773481ce0
@ -44,6 +44,10 @@ let
|
|||||||
default = if isGlobal then true else cfg.enableNetwork;
|
default = if isGlobal then true else cfg.enableNetwork;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
enableBundledCertificates = lib.mkEnableOption "bundling additional certificates from nixpkgs" // {
|
||||||
|
default = if isGlobal then true else cfg.enableBundledCertificates;
|
||||||
|
};
|
||||||
|
|
||||||
enableIsolation = lib.mkEnableOption "unsharing most of the system" // {
|
enableIsolation = lib.mkEnableOption "unsharing most of the system" // {
|
||||||
default = if isGlobal then true else cfg.enableIsolation;
|
default = if isGlobal then true else cfg.enableIsolation;
|
||||||
};
|
};
|
||||||
@ -106,6 +110,10 @@ in
|
|||||||
];
|
];
|
||||||
})
|
})
|
||||||
|
|
||||||
|
(lib.mkIf submoduleCfg.enableBundledCertificates {
|
||||||
|
sandboxing.bubblewrap.sharedNixPaths = [ pkgs.cacert ];
|
||||||
|
})
|
||||||
|
|
||||||
(lib.mkIf submoduleCfg.enableIsolation {
|
(lib.mkIf submoduleCfg.enableIsolation {
|
||||||
sandboxing.bubblewrap.extraArgs = lib.mkBefore [ "--unshare-all" ];
|
sandboxing.bubblewrap.extraArgs = lib.mkBefore [ "--unshare-all" ];
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user