From 17bf9a21202bc28d62fd9677d78818e29dcb3fda Mon Sep 17 00:00:00 2001 From: Tom Alexander Date: Sun, 25 Oct 2026 10:00:58 -0400 Subject: [PATCH] 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 --- nix/configuration/roles/gpg/default.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/nix/configuration/roles/gpg/default.nix b/nix/configuration/roles/gpg/default.nix index e9f0781..4abc005 100644 --- a/nix/configuration/roles/gpg/default.nix +++ b/nix/configuration/roles/gpg/default.nix @@ -125,5 +125,17 @@ in ]; 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"' "" + ''; + }); + }) + ]; }; }