nixos/modules: simplify pkgs.zfs handling

Thanks, @lethalman.
This commit is contained in:
Bjørn Forsman 2015-10-04 14:31:16 +02:00
parent 1d3a4b17dd
commit 424e6e501a

View File

@ -129,8 +129,7 @@ in
LimitNPROC = 1048576;
} // proxy_env;
path = [ pkgs.kmod ] ++
(if cfg.storageDriver == "zfs" then [ pkgs.zfs ] else []);
path = [ pkgs.kmod ] ++ (optional (cfg.storageDriver == "zfs") pkgs.zfs);
environment.MODULE_DIR = "/run/current-system/kernel-modules/lib/modules";
postStart = cfg.postStart;