nixpkgs/nixos/modules/services/hardware
Florian Klink fe446f8bb4 nixos/udev: allow /bin/sh in udev rules
Using `/bin/sh` in udev rules is fine (as it's guaranteed to point to a
(bash) shell on NixOS), and actually is better than hardcoding absolute
paths, at least in cases where these rules are also added to the
(systemd-based) initrd (via boot.initrd.services.udev.rules).

To allow this, we need to update the check routine that assembles the
list of files needing fixup, to explicitly exclude `/bin/sh` occurences.

To do this, we convert the pattern to a PCRE regex (which requires "/"
to be escaped), and add `(?!/bin/sh\b)` as a negative lookahead.

This subsequently allows udev rules to (start using) `/bin/sh` again, so
they'll work in-initrd.
2023-12-14 19:14:13 +02:00
..
sane_extra_backends
acpid.nix
actkbd.nix
argonone.nix
asusd.nix
auto-cpufreq.nix
auto-epp.nix nixos/auto-epp: init 2023-11-29 14:28:25 +08:00
bluetooth.nix treewide: use mkPackageOption 2023-11-27 01:28:36 +01:00
bolt.nix
brltty.nix
ddccontrol.nix
fancontrol.nix
freefall.nix treewide: use mkPackageOption 2023-11-27 01:28:36 +01:00
fwupd.nix treewide: use mkPackageOption 2023-11-27 01:28:36 +01:00
hddfancontrol.nix
illum.nix
interception-tools.nix
iptsd.nix
irqbalance.nix
joycond.nix treewide: use mkPackageOption 2023-11-27 01:28:36 +01:00
kanata.nix treewide: use mkPackageOption 2023-11-27 01:28:36 +01:00
keyd.nix
lcd.nix
lirc.nix
nvidia-optimus.nix
openrgb.nix treewide: use mkPackageOption 2023-11-27 01:28:36 +01:00
pcscd.nix
pommed.nix
power-profiles-daemon.nix nixos/power-profiles-daemon: add package option 2023-12-05 13:21:32 -05:00
rasdaemon.nix
ratbagd.nix
sane.nix treewide: use mkPackageOption 2023-11-27 01:28:36 +01:00
spacenavd.nix
supergfxd.nix nixos: fix bad mkEnableOption descriptions 2023-10-20 16:22:40 +01:00
tcsd.nix
thermald.nix treewide: use mkPackageOption 2023-11-27 01:28:36 +01:00
thinkfan.nix nixos/thinkfan: add setting 2023-12-03 08:45:03 +01:00
throttled.nix nixos/throttled: load required kernel module 2023-10-31 22:14:02 +01:00
tlp.nix nixos/tlp: Use hardware.cpu.x86.msr 2023-10-22 09:41:00 +02:00
trezord.md
trezord.nix
triggerhappy.nix
tuxedo-rs.nix nixos: fix bad mkEnableOption descriptions 2023-10-20 16:22:40 +01:00
udev.nix nixos/udev: allow /bin/sh in udev rules 2023-12-14 19:14:13 +02:00
udisks2.nix
undervolt.nix treewide: use mkPackageOption 2023-11-27 01:28:36 +01:00
upower.nix treewide: use mkPackageOption 2023-11-27 01:28:36 +01:00
usbmuxd.nix treewide: replace broken udev paths with systemd 2023-11-21 15:09:38 +01:00
usbrelayd.nix
vdr.nix treewide: use mkPackageOption 2023-11-27 01:28:36 +01:00