From b63b8260b5e4acc48d6ee62531265e38eb7a2513 Mon Sep 17 00:00:00 2001 From: Thomas Strobel Date: Thu, 14 Aug 2014 02:17:55 +0200 Subject: Add thermald: Linux Thermal Daemon --- nixos/modules/services/hardware/thermald.nix | 40 ++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 nixos/modules/services/hardware/thermald.nix (limited to 'nixos/modules/services/hardware/thermald.nix') 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"; + }; + + }; + +} -- cgit 1.4.1