wrapper-manager/sandboxing: init skeleton module

This commit is contained in:
Gabriel Arazas 2024-07-24 21:07:06 +08:00
parent 5b7dae16d2
commit 101e2da60c
No known key found for this signature in database
GPG Key ID: 62104B43D00AA360
2 changed files with 25 additions and 0 deletions

View File

@ -2,5 +2,6 @@
imports = [ imports = [
./programs/blender.nix ./programs/blender.nix
./programs/zellij.nix ./programs/zellij.nix
./sandboxing
]; ];
} }

View File

@ -0,0 +1,24 @@
{ 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);
};
}