Files
2026-06-04 15:03:06 +08:00

21 lines
505 B
Nix

{ pkgs, lib, ... }:
{
name = "scx-loader";
meta.maintainers = with lib.maintainers; [ ccicnce113424 ];
nodes.machine = {
boot.kernelPackages = pkgs.linuxPackages_latest;
services.scx-loader = {
enable = true;
config.default_sched = "scx_bpfland";
};
};
testScript = ''
machine.wait_for_unit("multi-user.target")
output = machine.succeed("scxctl get").strip()
assert output == "running Bpfland in Auto mode", f"Unexpected scxctl output: {output!r}"
'';
}