nixos-config/modules/wrapper-manager/sandboxing/default.nix
Gabriel Arazas 5376666247
wrapper-manager/sandboxing/boxxy: init
Alternative to Bubblewrap while I'm still figuring it out.
2024-07-29 19:03:31 +08:00

34 lines
773 B
Nix

{ lib, ... }:
{
imports = [
./boxxy.nix
./bubblewrap
];
options.wrappers =
let
sandboxingType = { name, lib, config, options, ... }: {
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";
};
wraparound = {
executable = options.arg0;
extraArgs = options.extraArgs;
};
};
};
in
lib.mkOption {
type = with lib.types; attrsOf (submodule sandboxingType);
};
}