python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / nixos / modules / services / hardware / auto-cpufreq.nix
blob9698e72eb31e1e5bff0d1c6bf6d72dd41682d865
1 { config, lib, pkgs, ... }:
2 with lib;
3 let
4   cfg = config.services.auto-cpufreq;
5 in {
6   options = {
7     services.auto-cpufreq = {
8       enable = mkEnableOption (lib.mdDoc "auto-cpufreq daemon");
9     };
10   };
12   config = mkIf cfg.enable {
13     environment.systemPackages = [ pkgs.auto-cpufreq ];
15     systemd = {
16       packages = [ pkgs.auto-cpufreq ];
17       services.auto-cpufreq = {
18         # Workaround for https://github.com/NixOS/nixpkgs/issues/81138
19         wantedBy = [ "multi-user.target" ];
20         path = with pkgs; [ bash coreutils ];
21       };
22     };
23   };