summary refs log tree commit diff
path: root/nixos/tests/initrd-network-ssh/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixos/tests/initrd-network-ssh/default.nix')
-rw-r--r--nixos/tests/initrd-network-ssh/default.nix4
1 files changed, 1 insertions, 3 deletions
diff --git a/nixos/tests/initrd-network-ssh/default.nix b/nixos/tests/initrd-network-ssh/default.nix
index 9d476cb1a96..b1f3d147e86 100644
--- a/nixos/tests/initrd-network-ssh/default.nix
+++ b/nixos/tests/initrd-network-ssh/default.nix
@@ -11,9 +11,7 @@ import ../make-test.nix ({ pkgs, lib, ... }:
       { config, pkgs, ... }:
       {
         boot.kernelParams = [
-          "ip=${
-            (head config.networking.interfaces.eth1.ip4).address
-          }:::255.255.255.0::eth1:none"
+          "ip=${config.networking.primaryIPAddress}:::255.255.255.0::eth1:none"
         ];
         boot.initrd.network = {
           enable = true;