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

15 lines
369 B
Nix
Raw Normal View History

2023-02-24 11:59:17 -03:00
{ config, lib, pkgs, ... }:
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");
'';
}