mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 22:57:55 +00:00
Gabriel Arazas
d633fc2b38
Not complete, just its options for now. We might even go into the direction of NixPak and nix-bubblewrap creating our own specialized launcher.
28 lines
627 B
Nix
28 lines
627 B
Nix
{ lib, ... }:
|
|
|
|
{
|
|
imports = [
|
|
./bubblewrap
|
|
];
|
|
|
|
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);
|
|
};
|
|
}
|