diff options
author | Nikolay Amiantov <ab@fmap.me> | 2016-02-03 13:37:19 +0300 |
---|---|---|
committer | Nikolay Amiantov <ab@fmap.me> | 2016-02-03 14:55:52 +0300 |
commit | 815ff00ee0bf2ccbacaafbb601937686edb2c0a7 (patch) | |
tree | 05a06897749310614d1ab10fcbfb989b8f5df81b /nixos/modules | |
parent | cc70183ceef7abc08a98453b33f9a8b24c3a123e (diff) | |
download | nixlib-815ff00ee0bf2ccbacaafbb601937686edb2c0a7.tar nixlib-815ff00ee0bf2ccbacaafbb601937686edb2c0a7.tar.gz nixlib-815ff00ee0bf2ccbacaafbb601937686edb2c0a7.tar.bz2 nixlib-815ff00ee0bf2ccbacaafbb601937686edb2c0a7.tar.lz nixlib-815ff00ee0bf2ccbacaafbb601937686edb2c0a7.tar.xz nixlib-815ff00ee0bf2ccbacaafbb601937686edb2c0a7.tar.zst nixlib-815ff00ee0bf2ccbacaafbb601937686edb2c0a7.zip |
initrd-ssh module: enable only if initrd network is enabled
Diffstat (limited to 'nixos/modules')
-rw-r--r-- | nixos/modules/system/boot/initrd-ssh.nix | 2 |
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 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 |