From 815ff00ee0bf2ccbacaafbb601937686edb2c0a7 Mon Sep 17 00:00:00 2001 From: Nikolay Amiantov Date: Wed, 3 Feb 2016 13:37:19 +0300 Subject: initrd-ssh module: enable only if initrd network is enabled --- nixos/modules/system/boot/initrd-ssh.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nixos/modules/system/boot') diff --git a/nixos/modules/system/boot/initrd-ssh.nix b/nixos/modules/system/boot/initrd-ssh.nix index 9f2fd4da9c4c..6809aefb7112 100644 --- a/nixos/modules/system/boot/initrd-ssh.nix +++ b/nixos/modules/system/boot/initrd-ssh.nix @@ -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 -- cgit 1.4.1