From 04e6bc3c5c99d6a99f17cfa5f69f34fe8941aee2 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Wed, 11 Mar 2026 21:06:44 +0900 Subject: hst: expose scheduling policy This is primarily useful for poorly written music players for now. Signed-off-by: Ophestra --- options.nix | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'options.nix') 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"; -- cgit v1.3.1