Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix cfs-zen-tweaks #223952

Merged
merged 2 commits into from
Jun 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion nixos/modules/programs/cfs-zen-tweaks.nix
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ in
config = mkIf cfg.enable {
systemd.packages = [ pkgs.cfs-zen-tweaks ];

systemd.services.set-cfs-tweak.wantedBy = [ "multi-user.target" "suspend.target" "hibernate.target" "hybrid-sleep.target" "suspend-then-hibernate.target" ];
systemd.services.set-cfs-tweaks.wantedBy = [
"multi-user.target"
"suspend.target"
"hibernate.target"
"hybrid-sleep.target"
"suspend-then-hibernate.target"
];
};
}
15 changes: 5 additions & 10 deletions pkgs/os-specific/linux/cfs-zen-tweaks/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17,21 +17,16 @@ stdenv.mkDerivation rec {
sha256 = "HRR2tdjNmWyrpbcMlihSdb/7g/tHma3YyXogQpRCVyo=";
};

postPatch = ''
patchShebangs set-cfs-zen-tweaks.bash
chmod +x set-cfs-zen-tweaks.bash
preConfigure = ''
substituteInPlace set-cfs-zen-tweaks.bash \
--replace '$(gawk' '$(${gawk}/bin/gawk'
'';

buildInputs = [
gawk
];
preFixup = ''
chmod +x $out/lib/cfs-zen-tweaks/set-cfs-zen-tweaks.bash
'';

nativeBuildInputs = [
cmake
makeWrapper
];
nativeBuildInputs = [ cmake ];

meta = with lib; {
description = "Tweak Linux CPU scheduler for desktop responsiveness";
Expand Down