lol
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

throttled: fix after recent update

+7 -3
+1 -1
nixos/modules/services/hardware/throttled.nix
··· 20 20 config = mkIf cfg.enable { 21 21 systemd.packages = [ pkgs.throttled ]; 22 22 # The upstream package has this in Install, but that's not enough, see the NixOS manual 23 - systemd.services.lenovo_fix.wantedBy = [ "multi-user.target" ]; 23 + systemd.services.throttled.wantedBy = [ "multi-user.target" ]; 24 24 25 25 environment.etc."throttled.conf".source = 26 26 if cfg.extraConfig != ""
+6 -2
pkgs/tools/system/throttled/default.nix
··· 1 - { lib, stdenv, fetchFromGitHub, python3Packages }: 1 + { lib, stdenv, fetchFromGitHub, python3Packages, pciutils }: 2 2 3 3 stdenv.mkDerivation rec { 4 4 pname = "throttled"; ··· 20 20 ]; 21 21 22 22 # The upstream unit both assumes the install location, and tries to run in a virtualenv 23 - postPatch = ''sed -e 's|ExecStart=.*|ExecStart=${placeholder "out"}/bin/throttled.py|' -i systemd/throttled.service''; 23 + postPatch = '' 24 + sed -e 's|ExecStart=.*|ExecStart=${placeholder "out"}/bin/throttled.py|' -i systemd/throttled.service 25 + 26 + substituteInPlace throttled.py --replace "'setpci'" "'${pciutils}/bin/setpci'" 27 + ''; 24 28 25 29 installPhase = '' 26 30 runHook preInstall