about summary refs log tree commit diff
path: root/nixos/modules/programs/light.nix
diff options
context:
space:
mode:
authorWill Dietz <w@wdtz.org>2018-09-30 06:11:56 -0500
committerWill Dietz <w@wdtz.org>2018-09-30 21:15:29 -0500
commitc78cda2a1a882ef6f4b747a79e6e4cff7686e72d (patch)
treed595e6ce1e5d0a01d19a6ddb69c8a8464a18ce0d /nixos/modules/programs/light.nix
parent12ed9dfd25ceb80fbddea56fb2a6622997682a5e (diff)
light: 1.1.2 -> 1.2, use new udev support instead of setuid wrapper.
Diffstat (limited to 'nixos/modules/programs/light.nix')
-rw-r--r--nixos/modules/programs/light.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/nixos/modules/programs/light.nix b/nixos/modules/programs/light.nix
index 6f8c389acc97e..93bfda481fea0 100644
--- a/nixos/modules/programs/light.nix
+++ b/nixos/modules/programs/light.nix
@@ -13,7 +13,7 @@ in
         default = false;
         type = types.bool;
         description = ''
-          Whether to install Light backlight control with setuid wrapper.
+          Whether to install Light backlight control command and udev rules.
         '';
       };
     };
@@ -21,6 +21,6 @@ in
 
   config = mkIf cfg.enable {
     environment.systemPackages = [ pkgs.light ];
-    security.wrappers.light.source = "${pkgs.light.out}/bin/light";
+    services.udev.packages = [ pkgs.light ];
   };
 }