This commit is contained in:
2025-08-29 15:25:40 +02:00
parent 26440bfeee
commit f3821f0dfa
201 changed files with 2461 additions and 1546 deletions

View File

@@ -3,15 +3,26 @@
lib,
pkgs,
...
}: let
inherit (lib) mkIf mkEnableOption mkOption types;
}:
let
inherit (lib)
mkIf
mkEnableOption
mkOption
types
;
cfg = config.nixos.services.scx;
in {
in
{
options = {
nixos.services.scx = {
enable = mkEnableOption "Enables scx scheduler";
scheduler = mkOption {
type = types.enum ["scx_lavd" "scx_rusty" "scx_bpfland"];
type = types.enum [
"scx_lavd"
"scx_rusty"
"scx_bpfland"
];
description = "Selects the scheduler for scx";
default = "scx_lavd";
};
@@ -28,7 +39,7 @@ in {
];
systemd.services.scx = {
enable = true;
wantedBy = ["multi-user.target"];
wantedBy = [ "multi-user.target" ];
unitConfig = {
Description = "Start scx_scheduler";
ConditionPathIsDirectory = "/sys/kernel/sched_ext";