Unverified Commit 4677729c authored by Sandro Jäckel's avatar Sandro Jäckel
Browse files

nixos/udev: only load firmware from udev when the nixos kernel is used

This is not the case for eg. NixOS in WSL
parent 413f779b
Loading
Loading
Loading
Loading
+10 −12
Original line number Diff line number Diff line
@@ -421,9 +421,7 @@ in
      (isYes "NET")
    ];


    system.activationScripts.udevd =
      ''
    system.activationScripts.udevd = lib.mkIf config.boot.kernel.enable ''
      # The deprecated hotplug uevent helper is not used anymore
      if [ -e /proc/sys/kernel/hotplug ]; then
        echo "" > /proc/sys/kernel/hotplug