diff --git a/nixos.nix b/nixos.nix index 926a1d2a..15ec5287 100644 --- a/nixos.nix +++ b/nixos.nix @@ -140,6 +140,7 @@ in inherit (dbusConfig) session_bus system_bus; direct_wayland = app.insecureWayland; sched_policy = app.schedPolicy; + sched_priority = app.schedPriority; container = { inherit (app) diff --git a/options.nix b/options.nix index ffce4dd0..f624b6f5 100644 --- a/options.nix +++ b/options.nix @@ -253,6 +253,13 @@ in The zero value retains the current scheduling policy. ''; }; + schedPriority = mkOption { + type = nullOr (ints.between 1 99); + default = null; + description = '' + Scheduling priority to set for the container. + ''; + }; nix = mkEnableOption "nix daemon access"; mapRealUid = mkEnableOption "mapping to priv-user uid";