flashrom: use a udev uaccess tag instead of introducing a custom flashrom group

See https://wiki.archlinux.org/title/Udev#Allowing_regular_users_to_use_devices for more info about the uaccess tag. The udev-acl tag is a legacy implementation, we add it purely for backwards compatibility.
This commit is contained in:
R-VdP 2023-02-17 15:56:51 +01:00
parent 8354258491
commit 8467c63749
No known key found for this signature in database
2 changed files with 1 additions and 2 deletions

View File

@ -22,6 +22,5 @@ in
config = mkIf cfg.enable {
services.udev.packages = [ cfg.package ];
environment.systemPackages = [ cfg.package ];
users.groups.flashrom = { };
};
}

View File

@ -26,7 +26,7 @@ stdenv.mkDerivation rec {
postPatch = ''
substituteInPlace util/flashrom_udev.rules \
--replace "plugdev" "flashrom"
--replace 'GROUP="plugdev"' 'TAG+="uaccess", TAG+="udev-acl"'
'';
makeFlags = [ "PREFIX=$(out)" "libinstall" ]