How to reload new rules added to services.udev.extraRules
without rebooting? I tried systemctl start systemd-udevd
and udevadm control --reload
with no luck
1 Like
If you change extraRules
the service systemd-udev
(which does the reload command) should have been restated after running nixos rebuild switch
, so no need to do that manually. Also that command is correct.
So, If you think the new rule is not working it’s probably not correct.
To debug properly you’d rather put udev into debugging mode
udevadm control --log-priority=debug
then you can look at the log with
journalctl -u systemd-udevd.service -f
Also, to manually trigger the rule you can do something like:
udevadm trigger --type=devices --action=change
My bad, I used “nixos-rebuild reboot” while thinking I was using “nixos-rebuild switch”. Thank you very much.