mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 16:57:55 +00:00
25 lines
591 B
Nix
25 lines
591 B
Nix
{ 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);
|
|
};
|
|
}
|