diff options
author | Joachim F <joachifm@users.noreply.github.com> | 2017-02-05 16:41:30 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-05 16:41:30 +0100 |
commit | 4459f26ad88074060299eab4e134d299aae50a00 (patch) | |
tree | 4bf6c821fe69081b9920a631fb25cc27dbfc951e /nixos | |
parent | 94c73dab1d75f252b6abb373481e65281522fba4 (diff) | |
parent | d91b39b3f966cde10058d43ccc226e934b3c5e80 (diff) | |
download | nixlib-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.nix | 1 | ||||
-rw-r--r-- | nixos/modules/services/hardware/illum.nix | 35 |
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"; + }; + + }; + +} |