nixos-config/hosts/i15/partitions-test.nix

20 lines
377 B
Nix
Raw Permalink Normal View History

2024-06-13 22:01:35 -03:00
{
config,
lib,
pkgs,
...
}:
2023-02-24 11:59:17 -03:00
pkgs.makeDiskoTest {
name = "test-disko-i15";
disko-config = ./partitions.nix;
enableOCR = true;
bootCommands = ''
machine.wait_for_text("[Pp]assphrase for")
machine.send_chars("secretsecret\n")
'';
extraTestScript = ''
machine.succeed("cryptsetup isLuks /dev/vda2");
machine.succeed("mountpoint /home");
'';
}