1{ lib, pkgs, ... }:
2{
3 name = "uefi";
4 meta = {
5 inherit (pkgs.limine.meta) maintainers;
6 };
7
8 nodes.machine =
9 { ... }:
10 {
11 virtualisation.useBootLoader = true;
12 virtualisation.useEFIBoot = true;
13
14 boot.loader.efi.canTouchEfiVariables = true;
15 boot.loader.limine.enable = true;
16 boot.loader.limine.efiSupport = true;
17 boot.loader.timeout = 0;
18 };
19
20 testScript = ''
21 machine.start()
22 with subtest('Machine boots correctly'):
23 machine.wait_for_unit('multi-user.target')
24 '';
25}