mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 10:58:02 +00:00
wrapper-manager/sandboxing: init skeleton module
This commit is contained in:
parent
5b7dae16d2
commit
101e2da60c
@ -2,5 +2,6 @@
|
||||
imports = [
|
||||
./programs/blender.nix
|
||||
./programs/zellij.nix
|
||||
./sandboxing
|
||||
];
|
||||
}
|
||||
|
24
modules/wrapper-manager/sandboxing/default.nix
Normal file
24
modules/wrapper-manager/sandboxing/default.nix
Normal 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);
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user