about summary refs log tree commit diff
path: root/nixos/tests/initrd-network-ssh
diff options
context:
space:
mode:
authorrnhmjoj <rnhmjoj@inventati.org>2017-12-03 05:14:54 +0100
committerrnhmjoj <rnhmjoj@inventati.org>2018-02-17 14:57:07 +0100
commite239c1e5820bdbb3d94ccc46e2d6756b0d37057d (patch)
tree949c07008657835d1ac6d6b247a50d05d7152cae /nixos/tests/initrd-network-ssh
parentc1bed05e341756f7fdfa73035c7f1e078e49be3d (diff)
downloadnixlib-e239c1e5820bdbb3d94ccc46e2d6756b0d37057d.tar
nixlib-e239c1e5820bdbb3d94ccc46e2d6756b0d37057d.tar.gz
nixlib-e239c1e5820bdbb3d94ccc46e2d6756b0d37057d.tar.bz2
nixlib-e239c1e5820bdbb3d94ccc46e2d6756b0d37057d.tar.lz
nixlib-e239c1e5820bdbb3d94ccc46e2d6756b0d37057d.tar.xz
nixlib-e239c1e5820bdbb3d94ccc46e2d6756b0d37057d.tar.zst
nixlib-e239c1e5820bdbb3d94ccc46e2d6756b0d37057d.zip
nixos/tests: rename IP addresses/routes options
Diffstat (limited to 'nixos/tests/initrd-network-ssh')
-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 9d476cb1a967..b1f3d147e862 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;