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:
parent
8354258491
commit
8467c63749
@ -22,6 +22,5 @@ in
|
||||
config = mkIf cfg.enable {
|
||||
services.udev.packages = [ cfg.package ];
|
||||
environment.systemPackages = [ cfg.package ];
|
||||
users.groups.flashrom = { };
|
||||
};
|
||||
}
|
||||
|
@ -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" ]
|
||||
|
Loading…
Reference in New Issue
Block a user