That’s just a udev rule. Here’s an example from my config, I use it to disable a piece of hardware that incorrectly inhibits sleep: https://github.com/TLATER/dotfiles/blob/444a85b014ad86dc5a9fa9e5e38c585dcb7958f7/nixos-config/yui/default.nix#L73
1 Like