summary refs log blame commit diff
path: root/nixos/modules/services/hardware/auto-cpufreq.nix
blob: 72c4eccaff72e8a2aa25e13792213378fca3b824 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

















                                                                       
{ config, lib, pkgs, ... }:
with lib;
let
  cfg = config.services.auto-cpufreq;
in {
  options = {
    services.auto-cpufreq = {
      enable = mkEnableOption "auto-cpufreq daemon";
    };
  };

  config = mkIf cfg.enable {
    environment.systemPackages = [ pkgs.auto-cpufreq ];

    systemd.packages = [ pkgs.auto-cpufreq ];
    systemd.services.auto-cpufreq.path = with pkgs; [ bash coreutils ];
  };
}