about summary refs log tree commit diff
path: root/nixos/modules/hardware
diff options
context:
space:
mode:
authorTuomas Tynkkynen <tuomas@tuxera.com>2016-04-22 10:40:57 +0300
committerTuomas Tynkkynen <tuomas@tuxera.com>2016-04-22 10:40:57 +0300
commit01854a850a7e62c6a4f1de7c4ca0f1c9d89841c8 (patch)
tree50d9531f27e58ce9dcbea28b5b42a375beeeda73 /nixos/modules/hardware
parentd99eaf005c1f21fb190fb2aa3f8b2f63218829d8 (diff)
downloadnixlib-01854a850a7e62c6a4f1de7c4ca0f1c9d89841c8.tar
nixlib-01854a850a7e62c6a4f1de7c4ca0f1c9d89841c8.tar.gz
nixlib-01854a850a7e62c6a4f1de7c4ca0f1c9d89841c8.tar.bz2
nixlib-01854a850a7e62c6a4f1de7c4ca0f1c9d89841c8.tar.lz
nixlib-01854a850a7e62c6a4f1de7c4ca0f1c9d89841c8.tar.xz
nixlib-01854a850a7e62c6a4f1de7c4ca0f1c9d89841c8.tar.zst
nixlib-01854a850a7e62c6a4f1de7c4ca0f1c9d89841c8.zip
treewide: Replace module_init_tools -> kmod
The former is deprecated and doesn't handle compressed kernel modules,
so all current usages of it are broken.
Diffstat (limited to 'nixos/modules/hardware')
-rw-r--r--nixos/modules/hardware/video/webcam/facetimehd.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/nixos/modules/hardware/video/webcam/facetimehd.nix b/nixos/modules/hardware/video/webcam/facetimehd.nix
index b35709763b90..309cedca48ba 100644
--- a/nixos/modules/hardware/video/webcam/facetimehd.nix
+++ b/nixos/modules/hardware/video/webcam/facetimehd.nix
@@ -31,13 +31,13 @@ in
 
     # unload module during suspend/hibernate as it crashes the whole system
     powerManagement.powerDownCommands = ''
-      ${pkgs.module_init_tools}/bin/rmmod -f facetimehd
+      ${pkgs.kmod}/bin/rmmod -f facetimehd
     '';
 
     # and load it back on resume
     powerManagement.resumeCommands = ''
       export MODULE_DIR=/run/current-system/kernel-modules/lib/modules
-      ${pkgs.module_init_tools}/bin/modprobe -v facetimehd
+      ${pkgs.kmod}/bin/modprobe -v facetimehd
     '';
 
   };