diff --git a/nixos/modules/system/boot/initrd-ssh.nix b/nixos/modules/system/boot/initrd-ssh.nix index 9f2fd4da9c4..6809aefb711 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