move scx package to its own module and inactivate because bug

This commit is contained in:
2025-07-16 04:30:22 +02:00
parent 59edaaeec8
commit f0a112b6f5
4 changed files with 29 additions and 26 deletions

48
flake.lock generated
View File

@@ -203,11 +203,11 @@
"rust-analyzer-src": "rust-analyzer-src" "rust-analyzer-src": "rust-analyzer-src"
}, },
"locked": { "locked": {
"lastModified": 1752475459, "lastModified": 1752561972,
"narHash": "sha256-z6QEu4ZFuHiqdOPbYss4/Q8B0BFhacR8ts6jO/F/aOU=", "narHash": "sha256-pPqES/udciKmKo422mfwRQ3YzjUCVyCTOsgZYA1xh+g=",
"owner": "nix-community", "owner": "nix-community",
"repo": "fenix", "repo": "fenix",
"rev": "bf0d6f70f4c9a9cf8845f992105652173f4b617f", "rev": "d17ca03c15660ecb8e5a01ca34e441f594feec62",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -465,11 +465,11 @@
"zon2nix": "zon2nix" "zon2nix": "zon2nix"
}, },
"locked": { "locked": {
"lastModified": 1752524958, "lastModified": 1752593456,
"narHash": "sha256-zuLc5Mn3vFyb/VsAyUFSSDPoPaVnsLugnshYaQidFUU=", "narHash": "sha256-H/rJ/svNsq8Y7+jXtsOUJVRdWmmQnHXxVZe3wAo4lYo=",
"owner": "ghostty-org", "owner": "ghostty-org",
"repo": "ghostty", "repo": "ghostty",
"rev": "c75c4a9685354f3a4049d1b45820337f38ca8825", "rev": "f44c24ef88b9a663e760ad3a5a5866eb146b051e",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -576,11 +576,11 @@
"rust-overlay": "rust-overlay_2" "rust-overlay": "rust-overlay_2"
}, },
"locked": { "locked": {
"lastModified": 1752426734, "lastModified": 1752604012,
"narHash": "sha256-a434OTO7gxtAnDE6/1JWSf4in3ed24bEYJb0dUSZipE=", "narHash": "sha256-/gfIVM+Vl1udE3QXgaiDV1ydfOzHQrC9ZduDdLgafuo=",
"owner": "helix-editor", "owner": "helix-editor",
"repo": "helix", "repo": "helix",
"rev": "6fd1efd1c29f4c0dbdab3a82d961fd5456e0cb1c", "rev": "5cda70e86637c376bdfaaf3383872e44d7622ff8",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -596,11 +596,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1752467539, "lastModified": 1752603129,
"narHash": "sha256-4kaR+xmng9YPASckfvIgl5flF/1nAZOplM+Wp9I5SMI=", "narHash": "sha256-S+wmHhwNQ5Ru689L2Gu8n1OD6s9eU9n9mD827JNR+kw=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "1e54837569e0b80797c47be4720fab19e0db1616", "rev": "e8c19a3cec2814c754f031ab3ae7316b64da085b",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -789,11 +789,11 @@
"xdph": "xdph" "xdph": "xdph"
}, },
"locked": { "locked": {
"lastModified": 1752526483, "lastModified": 1752611080,
"narHash": "sha256-XbCDmM9uL5i88gPNcY+gU5JTWogFeNogxb+x09UWaH4=", "narHash": "sha256-dHv7iufYA6Bd3JnF0An2biBCLXstSk5VB0ULgS50umE=",
"owner": "hyprwm", "owner": "hyprwm",
"repo": "hyprland", "repo": "hyprland",
"rev": "bc764f7065c8e46b4e62cbb511b419034712c509", "rev": "8453fbf4eb0af2e3265fd34a693b7d0e9167f4d2",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -1273,11 +1273,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1752373194, "lastModified": 1752631802,
"narHash": "sha256-wr42guldY37FVoFllUNgSavfohWKb/ExIySnzBCswDY=", "narHash": "sha256-t65TV28ZatEKVyFoTmExQgb8LECvrj/3Wuogn5PxfYI=",
"owner": "fufexan", "owner": "fufexan",
"repo": "nix-gaming", "repo": "nix-gaming",
"rev": "ad11b470127157e4277a875b0fca4234cca25b78", "rev": "b8834a847dee8875e06e218830f33a3486f0185e",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -1327,11 +1327,11 @@
}, },
"nixpkgs_10": { "nixpkgs_10": {
"locked": { "locked": {
"lastModified": 1751984180, "lastModified": 1752480373,
"narHash": "sha256-LwWRsENAZJKUdD3SpLluwDmdXY9F45ZEgCb0X+xgOL0=", "narHash": "sha256-JHQbm+OcGp32wAsXTE/FLYGNpb+4GLi5oTvCxwSoBOA=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "9807714d6944a957c2e036f84b0ff8caf9930bc0", "rev": "62e0f05ede1da0d54515d4ea8ce9c733f12d9f08",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -1584,11 +1584,11 @@
"rust-analyzer-src": { "rust-analyzer-src": {
"flake": false, "flake": false,
"locked": { "locked": {
"lastModified": 1752428706, "lastModified": 1752475356,
"narHash": "sha256-EJcdxw3aXfP8Ex1Nm3s0awyH9egQvB2Gu+QEnJn2Sfg=", "narHash": "sha256-V2nHrCJ0/Pv30j8NWJ4GfDlaNzfkOdYI0jS69GdVpq8=",
"owner": "rust-lang", "owner": "rust-lang",
"repo": "rust-analyzer", "repo": "rust-analyzer",
"rev": "591e3b7624be97e4443ea7b5542c191311aa141d", "rev": "e10d64eb402a25a32d9f1ef60cacc89d82a01b85",
"type": "github" "type": "github"
}, },
"original": { "original": {

View File

@@ -191,7 +191,7 @@
enable = false; enable = false;
}; };
scx = { scx = {
enable = true; enable = false;
scheduler = "scx_lavd"; scheduler = "scx_lavd";
flags = "--performance"; flags = "--performance";
}; };

View File

@@ -35,7 +35,6 @@
vulkan-tools vulkan-tools
wayland wayland
wayland-protocols wayland-protocols
scx.rustscheds
libGL libGL
]; ];

View File

@@ -1,6 +1,7 @@
{ {
config, config,
lib, lib,
pkgs,
... ...
}: let }: let
inherit (lib) mkIf mkEnableOption mkOption types; inherit (lib) mkIf mkEnableOption mkOption types;
@@ -22,6 +23,9 @@ in {
}; };
}; };
config = mkIf cfg.enable { config = mkIf cfg.enable {
environment.systemPackages = with pkgs; [
# scx.rustscheds
];
systemd.services.scx = { systemd.services.scx = {
enable = true; enable = true;
wantedBy = ["multi-user.target"]; wantedBy = ["multi-user.target"];