diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-03-11 21:06:44 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-03-12 00:52:18 +0900 |
| commit | 04e6bc3c5c99d6a99f17cfa5f69f34fe8941aee2 (patch) | |
| tree | 2ad64307c13e2f967fdf17c5f02e7682189b22e1 /options.nix | |
| parent | 5c540f90aa5ac069a370cbef0ddd81fa268b43c5 (diff) | |
hst: expose scheduling policy
This is primarily useful for poorly written music players for now.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'options.nix')
| -rw-r--r-- | options.nix | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/options.nix b/options.nix index 581ce181..ffce4dd0 100644 --- a/options.nix +++ b/options.nix @@ -98,6 +98,7 @@ in ints str bool + enum package anything submodule @@ -237,6 +238,22 @@ in }; hostAbstract = mkEnableOption "share abstract unix socket scope"; + schedPolicy = mkOption { + type = nullOr (enum [ + "fifo" + "rr" + "batch" + "idle" + "deadline" + "ext" + ]); + default = null; + description = '' + Scheduling policy to set for the container. + The zero value retains the current scheduling policy. + ''; + }; + nix = mkEnableOption "nix daemon access"; mapRealUid = mkEnableOption "mapping to priv-user uid"; device = mkEnableOption "access to all devices"; |
