From 101e2da60c79cbc9a2e4877121fd6b982b65e4e1 Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Wed, 24 Jul 2024 21:07:06 +0800 Subject: [PATCH] wrapper-manager/sandboxing: init skeleton module --- modules/wrapper-manager/default.nix | 1 + .../wrapper-manager/sandboxing/default.nix | 24 +++++++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 modules/wrapper-manager/sandboxing/default.nix diff --git a/modules/wrapper-manager/default.nix b/modules/wrapper-manager/default.nix index f82f3c02..1bf589f6 100644 --- a/modules/wrapper-manager/default.nix +++ b/modules/wrapper-manager/default.nix @@ -2,5 +2,6 @@ imports = [ ./programs/blender.nix ./programs/zellij.nix + ./sandboxing ]; } diff --git a/modules/wrapper-manager/sandboxing/default.nix b/modules/wrapper-manager/sandboxing/default.nix new file mode 100644 index 00000000..a300ec3a --- /dev/null +++ b/modules/wrapper-manager/sandboxing/default.nix @@ -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); + }; +}