hst: expose scheduling policy
All checks were successful
Test / ShareFS (push) Successful in 39s
Test / Sandbox (push) Successful in 45s
Test / Hakurei (push) Successful in 50s
Test / Sandbox (race detector) (push) Successful in 45s
Test / Hakurei (race detector) (push) Successful in 49s
Test / Create distribution (push) Successful in 59s
Test / Flake checks (push) Successful in 1m19s
All checks were successful
Test / ShareFS (push) Successful in 39s
Test / Sandbox (push) Successful in 45s
Test / Hakurei (push) Successful in 50s
Test / Sandbox (race detector) (push) Successful in 45s
Test / Hakurei (race detector) (push) Successful in 49s
Test / Create distribution (push) Successful in 59s
Test / Flake checks (push) Successful in 1m19s
This is primarily useful for poorly written music players for now. Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
17
options.nix
17
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";
|
||||
|
||||
Reference in New Issue
Block a user