diff --git a/nixos/tests/limine/default.nix b/nixos/tests/limine/default.nix index 9497e06a18f6..dad761b1f882 100644 --- a/nixos/tests/limine/default.nix +++ b/nixos/tests/limine/default.nix @@ -5,5 +5,6 @@ { checksum = runTest ./checksum.nix; secureBoot = runTest ./secure-boot.nix; + specialisations = runTest ./specialisations.nix; uefi = runTest ./uefi.nix; } diff --git a/nixos/tests/limine/specialisations.nix b/nixos/tests/limine/specialisations.nix new file mode 100644 index 000000000000..7d7e24a184e3 --- /dev/null +++ b/nixos/tests/limine/specialisations.nix @@ -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') + ''; +}