at 17.09-beta 583 B view raw
1{ config, lib, pkgs, ... }: 2 3with lib; 4 5let 6 cfg = config.services.illum; 7in { 8 9 options = { 10 11 services.illum = { 12 13 enable = mkOption { 14 default = false; 15 type = types.bool; 16 description = '' 17 Enable illum, a daemon for controlling screen brightness with brightness buttons. 18 ''; 19 }; 20 21 }; 22 23 }; 24 25 config = mkIf cfg.enable { 26 27 systemd.services.illum = { 28 description = "Backlight Adjustment Service"; 29 wantedBy = [ "multi-user.target" ]; 30 serviceConfig.ExecStart = "${pkgs.illum}/bin/illum-d"; 31 }; 32 33 }; 34 35}