diff --git a/nixos/modules/hardware/i2c.nix b/nixos/modules/hardware/i2c.nix index badb5fbee4b0..0ca6e82dc402 100644 --- a/nixos/modules/hardware/i2c.nix +++ b/nixos/modules/hardware/i2c.nix @@ -38,7 +38,7 @@ in name = "i2c-udev-rules"; text = '' # allow group ${cfg.group} and users with a seat use of i2c devices - ACTION=="add", KERNEL=="i2c-[0-9]*", TAG+="uaccess", GROUP="${cfg.group}", MODE="660" + ACTION!="remove", KERNEL=="i2c-[0-9]*", TAG+="uaccess", GROUP="${cfg.group}", MODE="660" ''; destination = "/etc/udev/rules.d/70-i2c.rules"; }