nixos/auto-cpufreq: fix service wantedBy

This commit is contained in:
Aamaruvi Yogamani 2021-06-14 19:53:47 -04:00
parent 961024ddc9
commit 358aa90e30
No known key found for this signature in database
GPG key ID: F930CFBFF5D7FDC3

View file

@ -12,7 +12,13 @@ in {
config = mkIf cfg.enable {
environment.systemPackages = [ pkgs.auto-cpufreq ];
systemd.packages = [ pkgs.auto-cpufreq ];
systemd.services.auto-cpufreq.path = with pkgs; [ bash coreutils ];
systemd = {
packages = [ pkgs.auto-cpufreq ];
services.auto-cpufreq = {
# Workaround for https://github.com/NixOS/nixpkgs/issues/81138
wantedBy = [ "multi-user.target" ];
path = with pkgs; [ bash coreutils ];
};
};
};
}