summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorJoachim F <joachifm@users.noreply.github.com>2017-02-05 16:41:30 +0100
committerGitHub <noreply@github.com>2017-02-05 16:41:30 +0100
commit4459f26ad88074060299eab4e134d299aae50a00 (patch)
tree4bf6c821fe69081b9920a631fb25cc27dbfc951e /nixos
parent94c73dab1d75f252b6abb373481e65281522fba4 (diff)
parentd91b39b3f966cde10058d43ccc226e934b3c5e80 (diff)
downloadnixlib-4459f26ad88074060299eab4e134d299aae50a00.tar
nixlib-4459f26ad88074060299eab4e134d299aae50a00.tar.gz
nixlib-4459f26ad88074060299eab4e134d299aae50a00.tar.bz2
nixlib-4459f26ad88074060299eab4e134d299aae50a00.tar.lz
nixlib-4459f26ad88074060299eab4e134d299aae50a00.tar.xz
nixlib-4459f26ad88074060299eab4e134d299aae50a00.tar.zst
nixlib-4459f26ad88074060299eab4e134d299aae50a00.zip
Merge pull request #22175 from dancek/illum
illum: init at 0.4
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/module-list.nix1
-rw-r--r--nixos/modules/services/hardware/illum.nix35
2 files changed, 36 insertions, 0 deletions
diff --git a/nixos/modules/module-list.nix b/nixos/modules/module-list.nix
index 1398542a5c17..bd427bc679c7 100644
--- a/nixos/modules/module-list.nix
+++ b/nixos/modules/module-list.nix
@@ -197,6 +197,7 @@
   ./services/hardware/bluetooth.nix
   ./services/hardware/brltty.nix
   ./services/hardware/freefall.nix
+  ./services/hardware/illum.nix
   ./services/hardware/irqbalance.nix
   ./services/hardware/nvidia-optimus.nix
   ./services/hardware/pcscd.nix
diff --git a/nixos/modules/services/hardware/illum.nix b/nixos/modules/services/hardware/illum.nix
new file mode 100644
index 000000000000..ff73c99a6537
--- /dev/null
+++ b/nixos/modules/services/hardware/illum.nix
@@ -0,0 +1,35 @@
+{ config, lib, pkgs, ... }:
+
+with lib;
+
+let
+  cfg = config.services.illum;
+in {
+
+  options = {
+
+    services.illum = {
+
+      enable = mkOption {
+        default = false;
+        type = types.bool;
+        description = ''
+          Enable illum, a daemon for controlling screen brightness with brightness buttons.
+        '';
+      };
+
+    };
+
+  };
+
+  config = mkIf cfg.enable {
+
+    systemd.services.illum = {
+      description = "Backlight Adjustment Service";
+      wantedBy = [ "multi-user.target" ];
+      serviceConfig.ExecStart = "${pkgs.illum}/bin/illum-d";
+    };
+
+  };
+
+}