nixos-config/modules/wrapper-manager/sandboxing/default.nix
Gabriel Arazas d633fc2b38
wrapper-manager/sandboxing/bubblewrap: init prototype
Not complete, just its options for now. We might even go into the
direction of NixPak and nix-bubblewrap creating our own specialized
launcher.
2024-07-26 15:41:49 +08:00

28 lines
627 B
Nix

{ lib, ... }:
{
imports = [
./bubblewrap
];
options.wrappers =
let
sandboxingType = { name, lib, config, ... }: {
options.sandboxing = {
variant = lib.mkOption {
type = with lib.types; nullOr (enum []);
description = ''
The sandboxing framework to be applied to the wrapper. A value of
`null` will essentially disable it.
'';
default = null;
example = "bubblewrap";
};
};
};
in
lib.mkOption {
type = with lib.types; attrsOf (submodule sandboxingType);
};
}