2024-07-24 13:07:06 +00:00
|
|
|
{ lib, ... }:
|
|
|
|
|
|
|
|
{
|
2025-01-29 04:48:19 +00:00
|
|
|
imports = [ ./boxxy.nix ./bubblewrap ];
|
2024-07-24 13:07:06 +00:00
|
|
|
|
2025-01-29 04:48:19 +00:00
|
|
|
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";
|
|
|
|
};
|
2024-07-29 08:39:59 +00:00
|
|
|
|
2025-01-29 04:48:19 +00:00
|
|
|
subwrapper = {
|
|
|
|
arg0 = options.arg0;
|
|
|
|
extraArgs = options.prependArgs;
|
2024-07-24 13:07:06 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2025-01-29 04:48:19 +00:00
|
|
|
in lib.mkOption {
|
|
|
|
type = with lib.types; attrsOf (submodule wraparoundType);
|
|
|
|
};
|
2024-07-24 13:07:06 +00:00
|
|
|
}
|