initrd-ssh module: enable only if initrd network is enabled
commit815ff00ee0bf2ccbacaafbb601937686edb2c0a7
authorNikolay Amiantov <ab@fmap.me>
dateWed 3 Feb 2016, 13:37 (11 years ago)
parentcc70183
nixos/modules/system/boot/initrd-ssh.nix+1−1
@@ -84,7 +84,7 @@ in
8484
8585 };
8686
87− config = mkIf cfg.enable {
87+ config = mkIf (config.boot.initrd.network.enable && cfg.enable) {
8888
8989 boot.initrd.extraUtilsCommands = ''
9090 copy_bin_and_libs ${pkgs.dropbear}/bin/dropbear