diff options
author | Thomas Strobel <ts468@cam.ac.uk> | 2014-08-14 02:17:55 +0200 |
---|---|---|
committer | Thomas Strobel <ts468@cam.ac.uk> | 2014-08-14 02:21:31 +0200 |
commit | b63b8260b5e4acc48d6ee62531265e38eb7a2513 (patch) | |
tree | e4545281cbf5db4f73615f7175e4f0a35c7b793f /nixos/modules/services/hardware/thermald.nix | |
parent | cdabab5b286d041bba7284ca594e543bf1acd1e7 (diff) | |
download | nixlib-b63b8260b5e4acc48d6ee62531265e38eb7a2513.tar nixlib-b63b8260b5e4acc48d6ee62531265e38eb7a2513.tar.gz nixlib-b63b8260b5e4acc48d6ee62531265e38eb7a2513.tar.bz2 nixlib-b63b8260b5e4acc48d6ee62531265e38eb7a2513.tar.lz nixlib-b63b8260b5e4acc48d6ee62531265e38eb7a2513.tar.xz nixlib-b63b8260b5e4acc48d6ee62531265e38eb7a2513.tar.zst nixlib-b63b8260b5e4acc48d6ee62531265e38eb7a2513.zip |
Add thermald: Linux Thermal Daemon
Diffstat (limited to 'nixos/modules/services/hardware/thermald.nix')
-rw-r--r-- | nixos/modules/services/hardware/thermald.nix | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/nixos/modules/services/hardware/thermald.nix b/nixos/modules/services/hardware/thermald.nix new file mode 100644 index 000000000000..d197c723d558 --- /dev/null +++ b/nixos/modules/services/hardware/thermald.nix @@ -0,0 +1,40 @@ +{ config, lib, pkgs, ... }: + +with lib; + +let + cfg = config.services.thermald; + +in { + + ###### interface + + options = { + + services.thermald = { + + enable = mkOption { + default = false; + description = '' + Whether to enable thermald, the temperature management daemon. + ''; + }; + + }; + + }; + + + ###### implementation + + config = mkIf cfg.enable { + + systemd.services.thermald = { + description = "Thermal Daemon Service"; + wantedBy = [ "multi-user.target" ]; + script = "exec ${pkgs.thermald}/sbin/thermald --no-daemon --dbus-enable"; + }; + + }; + +} |