nixos-config/modules/wrapper-manager/wraparound/default.nix
Gabriel Arazas 9687b886a7
wrapper-manager/wraparound: migrate namespace from sandboxing
This is in consideration for other wraparound modules in the future
which does not involve a sandboxing framework or something similar.
2024-10-01 13:03:23 +08:00

34 lines
766 B
Nix

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