summary refs log tree commit diff
path: root/modules/services/hardware/udev.nix
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2013-03-27 22:08:25 +0100
committerEelco Dolstra <eelco.dolstra@logicblox.com>2013-03-27 23:03:37 +0100
commit9c3a31ff4c5024fcb449c71f423768b6acf2f431 (patch)
tree3730ccd0c1980ecdebca23d9c44fd21804d13fcd /modules/services/hardware/udev.nix
parentc039e286b9116bcc4c5f4ac9e3fd64a8f667bcc6 (diff)
downloadnixpkgs-9c3a31ff4c5024fcb449c71f423768b6acf2f431.tar
nixpkgs-9c3a31ff4c5024fcb449c71f423768b6acf2f431.tar.gz
nixpkgs-9c3a31ff4c5024fcb449c71f423768b6acf2f431.tar.bz2
nixpkgs-9c3a31ff4c5024fcb449c71f423768b6acf2f431.tar.lz
nixpkgs-9c3a31ff4c5024fcb449c71f423768b6acf2f431.tar.xz
nixpkgs-9c3a31ff4c5024fcb449c71f423768b6acf2f431.tar.zst
nixpkgs-9c3a31ff4c5024fcb449c71f423768b6acf2f431.zip
Clear /proc/sys/kernel/hotplug again
Otherwise the kernel will pointlessly try to invoke /sbin/hotplug all
the time.  Another feature lost in the systemd switch.
Diffstat (limited to 'modules/services/hardware/udev.nix')
-rw-r--r--modules/services/hardware/udev.nix12
1 files changed, 10 insertions, 2 deletions
diff --git a/modules/services/hardware/udev.nix b/modules/services/hardware/udev.nix
index a83f99278f4..3bec396bfe5 100644
--- a/modules/services/hardware/udev.nix
+++ b/modules/services/hardware/udev.nix
@@ -228,7 +228,15 @@ in
       (isYes "NET")
     ];
 
-    system.activationScripts."set-firmware-path" =
-      "echo -n ${config.hardware.firmware} 2>/dev/null > /sys/module/firmware_class/parameters/path";
+    system.activationScripts.setFirmwarePath =
+      ''
+        echo -n ${config.hardware.firmware} 2>/dev/null > /sys/module/firmware_class/parameters/path
+      '';
+
+    system.activationScripts.clearHotplug =
+      ''
+        echo "" > /proc/sys/kernel/hotplug
+      '';
+
   };
 }