light: 1.1.2 -> 1.2, use new udev support instead of setuid wrapper.

This commit is contained in:
Will Dietz
2018-09-30 06:11:56 -05:00
parent 12ed9dfd25
commit c78cda2a1a
2 changed files with 15 additions and 10 deletions

View File

@@ -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 ];
};
}