1 { config, lib, pkgs, ... }:
4 cfg = config.services.auto-cpufreq;
7 services.auto-cpufreq = {
8 enable = mkEnableOption (lib.mdDoc "auto-cpufreq daemon");
12 config = mkIf cfg.enable {
13 environment.systemPackages = [ pkgs.auto-cpufreq ];
16 packages = [ pkgs.auto-cpufreq ];
17 services.auto-cpufreq = {
18 # Workaround for https://github.com/NixOS/nixpkgs/issues/81138
19 wantedBy = [ "multi-user.target" ];
20 path = with pkgs; [ bash coreutils ];