summary refs log tree commit diff
path: root/nixos/modules/system/boot/initrd-ssh.nix
diff options
context:
space:
mode:
authorNikolay Amiantov <ab@fmap.me>2016-02-03 13:37:19 +0300
committerNikolay Amiantov <ab@fmap.me>2016-02-03 14:55:52 +0300
commit815ff00ee0bf2ccbacaafbb601937686edb2c0a7 (patch)
tree05a06897749310614d1ab10fcbfb989b8f5df81b /nixos/modules/system/boot/initrd-ssh.nix
parentcc70183ceef7abc08a98453b33f9a8b24c3a123e (diff)
downloadnixpkgs-815ff00ee0bf2ccbacaafbb601937686edb2c0a7.tar
nixpkgs-815ff00ee0bf2ccbacaafbb601937686edb2c0a7.tar.gz
nixpkgs-815ff00ee0bf2ccbacaafbb601937686edb2c0a7.tar.bz2
nixpkgs-815ff00ee0bf2ccbacaafbb601937686edb2c0a7.tar.lz
nixpkgs-815ff00ee0bf2ccbacaafbb601937686edb2c0a7.tar.xz
nixpkgs-815ff00ee0bf2ccbacaafbb601937686edb2c0a7.tar.zst
nixpkgs-815ff00ee0bf2ccbacaafbb601937686edb2c0a7.zip
initrd-ssh module: enable only if initrd network is enabled
Diffstat (limited to 'nixos/modules/system/boot/initrd-ssh.nix')
-rw-r--r--nixos/modules/system/boot/initrd-ssh.nix2
1 files changed, 1 insertions, 1 deletions
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