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