nixos/limine: add test for specialisations

authored by

programmerlexi and committed by
Masum Reza
771d70fb bdc190b8

+29
+1
nixos/tests/limine/default.nix
··· 5 5 { 6 6 checksum = runTest ./checksum.nix; 7 7 secureBoot = runTest ./secure-boot.nix; 8 + specialisations = runTest ./specialisations.nix; 8 9 uefi = runTest ./uefi.nix; 9 10 }
+28
nixos/tests/limine/specialisations.nix
··· 1 + { lib, ... }: 2 + { 3 + name = "specialisations"; 4 + meta.maintainers = with lib.maintainers; [ 5 + lzcunt 6 + phip1611 7 + programmerlexi 8 + ]; 9 + nodes.machine = 10 + { ... }: 11 + { 12 + virtualisation.useBootLoader = true; 13 + virtualisation.useEFIBoot = true; 14 + 15 + specialisation.test = { }; 16 + 17 + boot.loader.efi.canTouchEfiVariables = true; 18 + boot.loader.limine.enable = true; 19 + boot.loader.limine.efiSupport = true; 20 + boot.loader.timeout = 0; 21 + }; 22 + 23 + testScript = '' 24 + machine.start() 25 + with subtest('Machine boots correctly'): 26 + machine.wait_for_unit('multi-user.target') 27 + ''; 28 + }