3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/nixos/modules/services/hardware/auto-cpufreq.nix

19 lines
406 B
Nix
Raw Normal View History

2021-01-08 20:57:48 +00:00
{ 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 ];
};
}