nixos/lib/testing: enable stc by default for installBootLoader VMs

This commit is contained in:
K900 2024-09-12 15:44:02 +03:00
parent 5cef278170
commit 2bc5aac960

View File

@ -23,10 +23,10 @@ in
};
}
({ config, ... }: {
# Don't pull in switch-to-configuration by default, except when specialisations are involved.
# Don't pull in switch-to-configuration by default, except when specialisations or early boot shenanigans are involved.
# This is mostly a Hydra optimization, so we don't rebuild all the tests every time switch-to-configuration-ng changes.
key = "no-switch-to-configuration";
system.switch.enable = mkDefault (config.isSpecialisation || config.specialisation != {});
system.switch.enable = mkDefault (config.isSpecialisation || config.specialisation != {} || config.virtualisation.installBootLoader);
})
];
}