diff --git a/lib/tests.nix b/lib/tests.nix index 752939d..3012ec3 100644 --- a/lib/tests.nix +++ b/lib/tests.nix @@ -101,7 +101,6 @@ let # config for tests to make them run faster or work at all documentation.enable = false; hardware.enableAllFirmware = lib.mkForce false; - networking.hostId = "8425e349"; # from profiles/base.nix, needed for zfs boot.initrd.preDeviceCommands = '' echo -n 'secretsecret' > /tmp/secret.key ''; diff --git a/tests/cli.nix b/tests/cli.nix index 24135cd..837ea56 100644 --- a/tests/cli.nix +++ b/tests/cli.nix @@ -6,6 +6,7 @@ diskoLib.testLib.makeDiskoTest { name = "cli"; disko-config = ../example/complex.nix; extraSystemConfig = { + networking.hostId = "8425e349"; fileSystems."/zfs_legacy_fs".options = [ "nofail" ]; # TODO find out why we need this! }; testMode = "direct"; diff --git a/tests/complex.nix b/tests/complex.nix index 573503f..f605096 100644 --- a/tests/complex.nix +++ b/tests/complex.nix @@ -6,6 +6,7 @@ diskoLib.testLib.makeDiskoTest { name = "complex"; disko-config = ../example/complex.nix; extraSystemConfig = { + networking.hostId = "8425e349"; fileSystems."/zfs_legacy_fs".options = [ "nofail" ]; # TODO find out why we need this! }; extraTestScript = '' diff --git a/tests/module.nix b/tests/module.nix index 6c412d8..3ccba50 100644 --- a/tests/module.nix +++ b/tests/module.nix @@ -6,6 +6,7 @@ diskoLib.testLib.makeDiskoTest { name = "module"; disko-config = ../example/complex.nix; extraSystemConfig = { + networking.hostId = "8425e349"; fileSystems."/zfs_legacy_fs".options = [ "nofail" ]; # TODO find out why we need this! }; testMode = "module"; diff --git a/tests/zfs-over-legacy.nix b/tests/zfs-over-legacy.nix index 722c6c1..1e4162f 100644 --- a/tests/zfs-over-legacy.nix +++ b/tests/zfs-over-legacy.nix @@ -4,6 +4,9 @@ diskoLib.testLib.makeDiskoTest { inherit pkgs; name = "zfs-over-legacy"; + extraSystemConfig = { + networking.hostId = "8425e349"; + }; disko-config = ../example/zfs-over-legacy.nix; extraTestScript = '' machine.succeed("test -e /zfs_fs"); diff --git a/tests/zfs.nix b/tests/zfs.nix index 5620270..b024a13 100644 --- a/tests/zfs.nix +++ b/tests/zfs.nix @@ -6,6 +6,7 @@ diskoLib.testLib.makeDiskoTest { name = "zfs"; disko-config = ../example/zfs.nix; extraSystemConfig = { + networking.hostId = "8425e349"; fileSystems."/zfs_legacy_fs".options = [ "nofail" ]; # TODO find out why we need this! }; extraTestScript = ''