From fed1283091b4ef91e0e7aa58f14b117832f2cc3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Sun, 29 Sep 2024 16:55:38 +0200 Subject: [PATCH] add nixos-facter to nixos installation test --- checks/installation/flake-module.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/checks/installation/flake-module.nix b/checks/installation/flake-module.nix index 485298e21..3ab30c8be 100644 --- a/checks/installation/flake-module.nix +++ b/checks/installation/flake-module.nix @@ -50,6 +50,7 @@ services.openssh.enable = true; users.users.root.openssh.authorizedKeys.keyFiles = [ ../lib/ssh/pubkey ]; system.nixos.variant_id = "installer"; + environment.systemPackages = [ pkgs.nixos-facter ]; virtualisation.emptyDiskImages = [ 4096 ]; nix.settings = { substituters = lib.mkForce [ ]; @@ -101,6 +102,8 @@ client.fail("test -f test-flake/machines/test-install-machine/hardware-configuration.nix") client.succeed("clan machines update-hardware-config --flake test-flake test-install-machine root@target>&2") client.succeed("test -f test-flake/machines/test-install-machine/hardware-configuration.nix") + client.succeed("clan machines update-hardware-config --backend nixos-facter --flake test-flake test-install-machine root@target>&2") + client.succeed("test -f test-flake/machines/test-install-machine/facter.json") client.succeed("clan machines install --debug --flake ${../..} --yes test-install-machine root@target >&2") try: target.shutdown()