nixos/limine: add test for specialisations

This commit is contained in:
programmerlexi 2025-05-21 21:13:26 +02:00 committed by Masum Reza
parent bdc190b8ef
commit 771d70fb47
2 changed files with 29 additions and 0 deletions

View file

@ -5,5 +5,6 @@
{
checksum = runTest ./checksum.nix;
secureBoot = runTest ./secure-boot.nix;
specialisations = runTest ./specialisations.nix;
uefi = runTest ./uefi.nix;
}

View file

@ -0,0 +1,28 @@
{ lib, ... }:
{
name = "specialisations";
meta.maintainers = with lib.maintainers; [
lzcunt
phip1611
programmerlexi
];
nodes.machine =
{ ... }:
{
virtualisation.useBootLoader = true;
virtualisation.useEFIBoot = true;
specialisation.test = { };
boot.loader.efi.canTouchEfiVariables = true;
boot.loader.limine.enable = true;
boot.loader.limine.efiSupport = true;
boot.loader.timeout = 0;
};
testScript = ''
machine.start()
with subtest('Machine boots correctly'):
machine.wait_for_unit('multi-user.target')
'';
}