summary refs log tree commit diff
path: root/nixos/modules/hardware
diff options
context:
space:
mode:
authorNikolay Amiantov <ab@fmap.me>2016-08-14 13:01:14 +0300
committerNikolay Amiantov <ab@fmap.me>2016-08-16 00:19:25 +0300
commit1f639587729daf6c34535addbc35fd6e5c816ffc (patch)
tree2c9f6d40471e26eea0161294fe846bb32fe6a8ea /nixos/modules/hardware
parentb2ebecd9e50471ec967ab9cdb2aba793d75cb747 (diff)
downloadnixlib-1f639587729daf6c34535addbc35fd6e5c816ffc.tar
nixlib-1f639587729daf6c34535addbc35fd6e5c816ffc.tar.gz
nixlib-1f639587729daf6c34535addbc35fd6e5c816ffc.tar.bz2
nixlib-1f639587729daf6c34535addbc35fd6e5c816ffc.tar.lz
nixlib-1f639587729daf6c34535addbc35fd6e5c816ffc.tar.xz
nixlib-1f639587729daf6c34535addbc35fd6e5c816ffc.tar.zst
nixlib-1f639587729daf6c34535addbc35fd6e5c816ffc.zip
nixos treewide: don't set MODULE_DIR
Diffstat (limited to 'nixos/modules/hardware')
-rw-r--r--nixos/modules/hardware/video/bumblebee.nix1
-rw-r--r--nixos/modules/hardware/video/webcam/facetimehd.nix1
2 files changed, 0 insertions, 2 deletions
diff --git a/nixos/modules/hardware/video/bumblebee.nix b/nixos/modules/hardware/video/bumblebee.nix
index b10846ac18a1..69db518ab21c 100644
--- a/nixos/modules/hardware/video/bumblebee.nix
+++ b/nixos/modules/hardware/video/bumblebee.nix
@@ -75,7 +75,6 @@ in
       serviceConfig = {
         ExecStart = "${bumblebee}/bin/bumblebeed --use-syslog -g ${cfg.group} --driver ${cfg.driver}";
       };
-      environment.MODULE_DIR="/run/current-system/kernel-modules/lib/modules/";
     };
   };
 }
diff --git a/nixos/modules/hardware/video/webcam/facetimehd.nix b/nixos/modules/hardware/video/webcam/facetimehd.nix
index 2a2fcf3057d4..d311f600c319 100644
--- a/nixos/modules/hardware/video/webcam/facetimehd.nix
+++ b/nixos/modules/hardware/video/webcam/facetimehd.nix
@@ -36,7 +36,6 @@ in
 
     # and load it back on resume
     powerManagement.resumeCommands = ''
-      export MODULE_DIR=/run/current-system/kernel-modules/lib/modules
       ${pkgs.kmod}/bin/modprobe -v facetimehd
     '';