git.iko.soy/typeable/nixpkgs
on master help sign in
nixos/modules: simplify pkgs.zfs handling

Thanks, @lethalman.

commit424e6e501a44dc38c610f6d2039dda1cfafe9490 authorBjørn Forsman <bjorn.forsman@gmail.com> dateSun 4 Oct 2015, 14:31 (11 years ago) parent1d3a4b1
1 file changed+1−2
nixos/modules/virtualisation/docker.nix+1−2
nixos/modules/virtualisation/docker.nix+1−2
@@ -129,8 +129,7 @@ in
129129 LimitNPROC = 1048576;
130130 } // proxy_env;
131131
132− path = [ pkgs.kmod ] ++
133− (if cfg.storageDriver == "zfs" then [ pkgs.zfs ] else []);
132+ path = [ pkgs.kmod ] ++ (optional (cfg.storageDriver == "zfs") pkgs.zfs);
134133 environment.MODULE_DIR = "/run/current-system/kernel-modules/lib/modules";
135134
136135 postStart = cfg.postStart;