services.udev.extraHwdb Not Updating 99-local.rules

I’ve added the following to my configuration.nix:

  services.udev.extraHwdb = 
	''
	  evdev:input:b0003v1395p005E*
	    KEYBOARD_KEY_C00EA=reserved
	'';

Per advice in this Reddit post to disconnect the audio controls from my amp from the system.

However, after running sudo nixos-rebuild switch, the desired behaviour does not occur and I don’t see the desired configuration added to /etc/udev/rules.d/99-local.rules. Other things in my configuration.nix are updated, but that bit doesn’t seem to do anything.

I’ve tried rebooting after re-building, still nothing, though I’d assume the change would appear in the rules file even without a reboot

That’s because it’s written to a different file:

2 Likes

Ah, thanks, that gave me the right tip.

I was looking in my system’s /etc/ and that just has hwdb.bin. Looking in the store, I found the extra-hwdb-file store with the path as you described, and could see in there that at some point along the line the whitespace got all screwed up. Changing the entry in my configuration.nix to be as follows

  services.udev.extraHwdb = 
	''
evdev:input:b0003v1395p005E*
  KEYBOARD_KEY_C00EA=reserved
	'';

fixed it. Now just to figure out the spacing, but don’t think that’s a Nix issue