1{ config, lib, pkgs, ... }:
2with lib;
3let
4 cfg = config.services.auto-cpufreq;
5in {
6 options = {
7 services.auto-cpufreq = {
8 enable = mkEnableOption "auto-cpufreq daemon";
9 };
10 };
11
12 config = mkIf cfg.enable {
13 environment.systemPackages = [ pkgs.auto-cpufreq ];
14
15 systemd.packages = [ pkgs.auto-cpufreq ];
16 systemd.services.auto-cpufreq.path = with pkgs; [ bash coreutils ];
17 };
18}