mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-20 02:55:39 +00:00
nixos/modules: simplify pkgs.zfs handling
Thanks, @lethalman.
This commit is contained in:
parent
1d3a4b17dd
commit
424e6e501a
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user