diff options
author | Aamaruvi Yogamani <38222826+Technical27@users.noreply.github.com> | 2021-01-08 15:57:48 -0500 |
---|---|---|
committer | Aamaruvi Yogamani <38222826+Technical27@users.noreply.github.com> | 2021-01-25 09:24:07 -0500 |
commit | 30b4f71c1511978a14ef759e803e578eb30d9222 (patch) | |
tree | 1cce317dced3bf39d41970cc2c0956d2d1c8756f /nixos/modules/services/hardware/auto-cpufreq.nix | |
parent | 508aacd58928ce49c9670813136fab5d6b6c0749 (diff) | |
download | nixpkgs-30b4f71c1511978a14ef759e803e578eb30d9222.tar nixpkgs-30b4f71c1511978a14ef759e803e578eb30d9222.tar.gz nixpkgs-30b4f71c1511978a14ef759e803e578eb30d9222.tar.bz2 nixpkgs-30b4f71c1511978a14ef759e803e578eb30d9222.tar.lz nixpkgs-30b4f71c1511978a14ef759e803e578eb30d9222.tar.xz nixpkgs-30b4f71c1511978a14ef759e803e578eb30d9222.tar.zst nixpkgs-30b4f71c1511978a14ef759e803e578eb30d9222.zip |
nixos/auto-cpufreq: init module
Diffstat (limited to 'nixos/modules/services/hardware/auto-cpufreq.nix')
-rw-r--r-- | nixos/modules/services/hardware/auto-cpufreq.nix | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/nixos/modules/services/hardware/auto-cpufreq.nix b/nixos/modules/services/hardware/auto-cpufreq.nix new file mode 100644 index 00000000000..72c4eccaff7 --- /dev/null +++ b/nixos/modules/services/hardware/auto-cpufreq.nix @@ -0,0 +1,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 ]; + }; +} |