Files
disko/lib
Michael Hoang 7a420ab8b0 lib: add install-test machinery (inert)
Three new files that will replace the manual-merging body of
`makeDiskoTest` in lib/tests.nix:

  - lib/install-test.nix:           pure NixOS test module declaring
                                    the 7 disko convenience knobs
                                    (extraChecks, bootCommands, boot,
                                    efi, postDisko, enableCanokey, mode)
                                    alongside the config that consumes
                                    them. Owns the nodes.{formatter,
                                    machine} blocks and the testScript.
                                    The formatter's `../module.nix`
                                    import is gated on
                                    `config.mode == "module"` —
                                    `direct` mode uses pre-built
                                    standalone CLI scripts and doesn't
                                    need the module's
                                    `system.build.{format,mount,…}`
                                    derivations.
  - lib/install-test-formatter.nix: per-node base for the formatter VM
                                    (test-instrumentation + qemu-guest +
                                    swraid + nix.settings tweaks).
                                    Disko module + `disko.enableConfig =
                                    false`/`checkScripts = true` /
                                    forced `disko.devices` are set by
                                    `install-test.nix` only in
                                    `mode = "module"`.
  - lib/install-test-machine.nix:   per-node base for the booted system
                                    being tested. Imports the disko
                                    module unconditionally (the booted
                                    system always needs disko's
                                    generated fileSystems/boot/swapDevices).

Nothing imports these yet; the files are inert until the next commit
wires `disko.test` as the host eval's submodule pointing at them.

Part of the makeDiskoTest -> evalModules refactor outlined in
`~/.claude/plans/disko-test-refactor.md`.
2026-05-18 14:21:23 +02:00
..
2026-05-02 01:02:39 +02:00
2025-02-15 10:08:56 +00:00