mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
nixos/auto-cpufreq: fix service wantedBy
This commit is contained in:
parent
961024ddc9
commit
358aa90e30
1 changed files with 8 additions and 2 deletions
|
@ -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 ];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue