mirror of
https://github.com/nix-community/disko.git
synced 2026-12-01 13:33:28 +01:00
19 lines
562 B
Nix
19 lines
562 B
Nix
{ pkgs ? import <nixpkgs> { }
|
|
, diskoLib ? pkgs.callPackage ../lib { }
|
|
}:
|
|
diskoLib.testLib.makeDiskoTest {
|
|
inherit pkgs;
|
|
name = "zfs-encrypted-root";
|
|
extraInstallerConfig.networking.hostId = "8425e349";
|
|
extraSystemConfig.networking.hostId = "8425e349";
|
|
disko-config =
|
|
pkgs.lib.recursiveUpdate (import ../example/zfs-encrypted-root.nix) {
|
|
disko.devices.zpool.zroot.datasets.root.options.keylocation = "file:///tmp/secret.key";
|
|
};
|
|
extraTestScript = ''
|
|
machine.succeed("mountpoint /");
|
|
machine.succeed("mountpoint /nix");
|
|
'';
|
|
}
|
|
|