2023-08-23 14:06:38 +03:00
|
|
|
{lib, ...}: let
|
2022-09-12 03:32:23 +03:00
|
|
|
l = lib // builtins;
|
2023-08-23 14:06:38 +03:00
|
|
|
mkRule = name: type: {
|
|
|
|
inherit name type;
|
|
|
|
};
|
2022-09-12 03:32:23 +03:00
|
|
|
in {
|
2022-09-12 03:11:38 +03:00
|
|
|
services.ananicy = {
|
|
|
|
enable = true;
|
2023-08-23 14:06:38 +03:00
|
|
|
extraRules = [
|
2022-09-12 03:11:38 +03:00
|
|
|
# coompilers
|
|
|
|
(mkRule "g++" "BG_CPUIO")
|
|
|
|
(mkRule "gcc" "BG_CPUIO")
|
|
|
|
(mkRule "clang" "BG_CPUIO")
|
|
|
|
(mkRule "mold" "BG_CPUIO")
|
|
|
|
(mkRule "ld" "BG_CPUIO")
|
|
|
|
(mkRule "gold" "BG_CPUIO")
|
|
|
|
(mkRule "rustc" "BG_CPUIO")
|
2023-01-25 16:57:18 +03:00
|
|
|
(mkRule "zig" "BG_CPUIO")
|
2022-09-12 03:11:38 +03:00
|
|
|
(mkRule "cargo" "BG_CPUIO")
|
|
|
|
(mkRule "rust-analyzer" "BG_CPUIO")
|
|
|
|
(mkRule "go" "BG_CPUIO")
|
|
|
|
(mkRule "nix" "BG_CPUIO")
|
|
|
|
(mkRule "nix-daemon" "BG_CPUIO")
|
|
|
|
# editors
|
|
|
|
(mkRule "hx" "Doc-View")
|
|
|
|
(mkRule ".hx-wrapped" "Doc-View")
|
|
|
|
# browser
|
|
|
|
(mkRule "firefox" "Doc-View")
|
|
|
|
(mkRule ".firefox-wrapped" "Doc-View")
|
2023-01-25 16:57:18 +03:00
|
|
|
(mkRule "chromium" "Doc-View")
|
|
|
|
(mkRule ".chromium-wrapped" "Doc-View")
|
2022-09-12 03:11:38 +03:00
|
|
|
# wm
|
2022-11-05 23:10:31 +03:00
|
|
|
(mkRule ".gnome-shell-wrapped" "LowLatency_RT")
|
|
|
|
(mkRule "gnome-shell" "LowLatency_RT")
|
2022-09-12 03:11:38 +03:00
|
|
|
(mkRule "Hyprland" "LowLatency_RT")
|
2023-01-25 16:57:18 +03:00
|
|
|
(mkRule "sway" "LowLatency_RT")
|
|
|
|
(mkRule ".sway-wrapped" "LowLatency_RT")
|
2022-09-12 03:11:38 +03:00
|
|
|
(mkRule "rofi" "LowLatency_RT")
|
2023-01-25 16:57:18 +03:00
|
|
|
(mkRule ".rofi-wrapped" "LowLatency_RT")
|
2022-09-12 03:11:38 +03:00
|
|
|
(mkRule "wlsunset" "BG_CPUIO")
|
|
|
|
(mkRule "swayidle" "BG_CPUIO")
|
|
|
|
# term
|
|
|
|
(mkRule "wezterm-gui" "Doc-View")
|
2022-09-12 03:32:23 +03:00
|
|
|
(mkRule "foot" "Doc-View")
|
2022-11-05 23:10:31 +03:00
|
|
|
(mkRule "gnome-terminal" "Doc-View")
|
|
|
|
(mkRule ".gnome-terminal-wrapped" "Doc-View")
|
2022-09-12 03:11:38 +03:00
|
|
|
# other
|
|
|
|
(mkRule "syncthing" "BG_CPUIO")
|
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|