nixpkgs/nixos/modules
Bjørn Forsman 74d5adcb4d nixos: move environment.{variables => sessionVariables}.MODULE_DIR
This solves the problem that modprobe does not know about $MODULE_DIR
when run via sudo, and instead wrongly tries to read /lib/modules/:

  $ sudo strace -efile modprobe foo |& grep modules
  open("/lib/modules/3.14.37/modules.softdep", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
  open("/lib/modules/3.14.37/modules.dep.bin", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
  open("/lib/modules/3.14.37/modules.dep.bin", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
  open("/lib/modules/3.14.37/modules.alias.bin", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)

Without this patch, one would have to use sudo -E (preserves environment
vars). But that option is reserved for sudo users with extra rights
(SETENV), so it's not a solution.

environment.sessionVariables are set by PAM, so they are included in the
environment used by sudo.
2015-06-14 18:56:58 +02:00
..
config nixos/pulseaudio: Fix description 2015-06-11 17:26:12 -07:00
hardware nvidia: 346.47 -> 346.59 2015-04-07 13:24:55 -07:00
installer Move stuff to modules/profiles/installation-device.nix 2015-06-10 15:28:55 +02:00
misc Merge pull request #8204 from copumpkin/modulesPath 2015-06-10 12:32:04 -04:00
profiles Move stuff to modules/profiles/installation-device.nix 2015-06-10 15:28:55 +02:00
programs Add kbdlight package and setuid wrapper 2015-05-11 13:23:01 +08:00
security cacert: store ca-bundle.crt in $out/etc/ssl/certs instead of $out 2015-06-05 13:00:52 -07:00
services The user specified in the conf should run MPD 2015-06-13 23:24:19 +02:00
system nixos: move environment.{variables => sessionVariables}.MODULE_DIR 2015-06-14 18:56:58 +02:00
tasks nixos: add support for exfat filesystem 2015-05-27 18:59:33 +03:00
testing test-instrumentation.nix: Prevent calling a pager 2015-01-15 14:39:29 +01:00
virtualisation Use the right nix when doing things in our amazoninit 2015-06-13 21:26:50 -04:00
module-list.nix Add ripple rest module 2015-06-08 13:48:23 +02:00
rename.nix Make environment.checkConfigurationOptions an alias 2015-04-10 16:11:07 +02:00