do less string coercion in test modules in case that reduces copies

idk honestly but these tests take sooo long I'm paranoid
This commit is contained in:
Qyriad 2026-03-05 15:44:58 +01:00
parent a8a2d6e043
commit 442728a5ca

View file

@ -1,6 +1,6 @@
{ pkgs, lib, modulesPath, ... }: { pkgs, lib, modulesPath, ... }:
let let
moduleList = import "${modulesPath}/module-list.nix"; moduleList = import (modulesPath + "/module-list.nix");
dynixFromSearchPath = let dynixFromSearchPath = let
res = builtins.tryEval <dynix>; res = builtins.tryEval <dynix>;
@ -8,7 +8,7 @@ let
in in
{ {
imports = [ imports = [
"${modulesPath}/testing/test-instrumentation.nix" (modulesPath + "/testing/test-instrumentation.nix")
] ++ lib.concatLists [ ] ++ lib.concatLists [
dynixFromSearchPath dynixFromSearchPath
moduleList moduleList
@ -26,7 +26,7 @@ in
nix = { nix = {
package = pkgs.lixPackageSets.latest.lix; package = pkgs.lixPackageSets.latest.lix;
nixPath = [ nixPath = [
"nixpkgs=${pkgs.path}" ("nixpkgs=" + pkgs.path)
"/nix/var/nix/profiles/per-user/root/profile/share/nixos/modules" "/nix/var/nix/profiles/per-user/root/profile/share/nixos/modules"
]; ];