From 0db9fb252ff5b9802e8a7f02d23d9c62272ab464 Mon Sep 17 00:00:00 2001 From: roconnor Date: Thu, 7 May 2026 20:42:29 -0400 Subject: [PATCH] nixos/i2c: update udev rules Since systemd 258 it is recommended to replace ACTION=="add" with ACTION!="remove". Fixes the issue described in . --- nixos/modules/hardware/i2c.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"; }