initrd-ssh module: enable only if initrd network is enabled

This commit is contained in:
Nikolay Amiantov 2016-02-03 13:37:19 +03:00
parent cc70183cee
commit 815ff00ee0

View file

@ -84,7 +84,7 @@ in
};
config = mkIf cfg.enable {
config = mkIf (config.boot.initrd.network.enable && cfg.enable) {
boot.initrd.extraUtilsCommands = ''
copy_bin_and_libs ${pkgs.dropbear}/bin/dropbear