nixos/auto-cpufreq: init module
This commit is contained in:
parent
508aacd589
commit
30b4f71c15
@ -356,6 +356,7 @@
|
|||||||
./services/games/terraria.nix
|
./services/games/terraria.nix
|
||||||
./services/hardware/acpid.nix
|
./services/hardware/acpid.nix
|
||||||
./services/hardware/actkbd.nix
|
./services/hardware/actkbd.nix
|
||||||
|
./services/hardware/auto-cpufreq.nix
|
||||||
./services/hardware/bluetooth.nix
|
./services/hardware/bluetooth.nix
|
||||||
./services/hardware/bolt.nix
|
./services/hardware/bolt.nix
|
||||||
./services/hardware/brltty.nix
|
./services/hardware/brltty.nix
|
||||||
|
18
nixos/modules/services/hardware/auto-cpufreq.nix
Normal file
18
nixos/modules/services/hardware/auto-cpufreq.nix
Normal file
@ -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 ];
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user