Remove references to plugdev in /etc/udev/rules.d/70-u2f.rules.

This is a legacy group that should not be used. ref: https://gitlab.archlinux.org/archlinux/packaging/packages/probe-rs/-/work_items/4
This commit is contained in:
Tom Alexander
2026-10-25 10:00:58 -04:00
parent bf9111ec66
commit 17bf9a2120

View File

@@ -125,5 +125,17 @@ in
]; ];
programs.gnupg.agent.enableExtraSocket = true; programs.gnupg.agent.enableExtraSocket = true;
nixpkgs.overlays = [
(final: prev: {
# This package creates /etc/udev/rules.d/70-u2f.rules referencing a legacy group "plugdev". This overlay removes those references. ref: https://gitlab.archlinux.org/archlinux/packaging/packages/probe-rs/-/work_items/4
libfido2 = prev.libfido2.overrideAttrs (old: {
postPatch = (old.postPatch or "") + ''
substituteInPlace udev/70-u2f.rules \
--replace-fail ', GROUP="plugdev"' ""
'';
});
})
];
}; };
} }