mirror of
https://github.com/nix-community/disko.git
synced 2026-12-01 05:23:28 +01:00
This requires a lot of restructuring. The .nix files have to be bundled together with the python files, so they need to follow python's module system structure. I ran `nix-fast-build --no-link -j 2 --eval-workers 3 --flake .#checks` and it succeeded, so I'm reasonably confident I changed everything as required.
13 lines
298 B
Nix
13 lines
298 B
Nix
{ pkgs ? import <nixpkgs> { }
|
|
, diskoLib ? pkgs.callPackage ../src/disko_lib { }
|
|
}:
|
|
diskoLib.testLib.makeDiskoTest {
|
|
inherit pkgs;
|
|
name = "tmpfs";
|
|
disko-config = ../example/tmpfs.nix;
|
|
extraTestScript = ''
|
|
machine.succeed("mountpoint /");
|
|
machine.succeed("mountpoint /tmp");
|
|
'';
|
|
}
|