From fee3087c181e5848ed56964b8720bdb4c86694b3 Mon Sep 17 00:00:00 2001 From: Michael Hoang Date: Mon, 18 May 2026 01:25:15 +0200 Subject: [PATCH] module.nix: switch system.build.installTest to match system.build.diskoTest MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit One-line semantic change in `module.nix`: replace `installTest = diskoLib.testLib.makeDiskoTest { … };` with `installTest = lib.mkDefault config.disko.test.test;` in the `system.build` attrset — same RHS as the `diskoTest` definition added in the previous commit. After this commit, `diskoTest` and `installTest` are two attrset entries with identical values; `installTest` is purely a back-compat alias resolving to the exact same derivation as `diskoTest`. The `cfg.test.efi` / `cfg.test.bootCommands` / etc. reads that used to be `makeDiskoTest` arguments disappear with the legacy call. `vmWithDisko` stays unchanged. --- module.nix | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/module.nix b/module.nix index f4c3ad6..56f02b4 100644 --- a/module.nix +++ b/module.nix @@ -310,16 +310,7 @@ in builtins.trace "the .diskoNoDeps output is deprecated, please use .diskoScriptNoDeps instead" (cfg.devices._scripts { inherit pkgs; }).diskoScriptNoDeps; - installTest = diskoLib.testLib.makeDiskoTest { - inherit extendModules pkgs; - name = "${config.networking.hostName}-disko"; - disko-config = builtins.removeAttrs config [ "_module" ]; - testMode = "direct"; - bootCommands = cfg.test.bootCommands; - efi = cfg.test.efi; - enableOCR = cfg.test.enableOCR; - extraTestScript = cfg.test.extraChecks; - }; + installTest = lib.mkDefault config.disko.test.test; diskoTest = lib.mkDefault config.disko.test.test;