Skip to content

Commit

Permalink
Merge pull request #223952 from m-bdf/fix-cfs-zen-tweaks
Browse files Browse the repository at this point in the history
Fix cfs-zen-tweaks
  • Loading branch information
mkg20001 authored Jun 15, 2023
2 parents 7a53dae + 4017ae3 commit 95c729c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
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

0 comments on commit 95c729c

Please sign in to comment.