nixos-config/modules/wrapper-manager/sandboxing/default.nix

25 lines
591 B
Nix
Raw Normal View History

{ lib, ... }:
{
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);
};
}