nixos treewide: don't set MODULE_DIR

This commit is contained in:
Nikolay Amiantov
2016-08-14 13:01:14 +03:00
parent b2ebecd9e5
commit 1f63958772
8 changed files with 1 additions and 17 deletions

View File

@@ -228,7 +228,6 @@ in
systemd.services."systemd-modules-load" =
{ wantedBy = [ "multi-user.target" ];
restartTriggers = [ kernelModulesConf ];
environment.MODULE_DIR = "/run/booted-system/kernel-modules/lib/modules";
serviceConfig =
{ # Ignore failed module loads. Typically some of the
# modules in boot.kernelModules are "nice to have but
@@ -238,10 +237,6 @@ in
};
};
systemd.services.kmod-static-nodes =
{ environment.MODULE_DIR = "/run/booted-system/kernel-modules/lib/modules";
};
lib.kernelConfig = {
isYes = option: {
assertion = config: config.isYes option;