Merge pull request #223952 from m-bdf/fix-cfs-zen-tweaks

Fix cfs-zen-tweaks
This commit is contained in:
Maciej Krüger 2023-06-15 21:56:00 +02:00 committed by GitHub
commit 95c729c030
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 11 deletions

View File

@ -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"
];
};
}

View File

@ -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";