Skip to content

Commit 1ee9e02

Browse files
tests: add make-disk-image-zfs.nix
This uses the simple zfs on root example to test that zfs disk images can be made in CI
1 parent 68978ef commit 1ee9e02

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

tests/make-disk-image-zfs.nix

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
pkgs ? import <nixpkgs> { },
3+
...
4+
}:
5+
6+
(pkgs.nixos [
7+
../module.nix
8+
../example/zfs-simple-root.nix
9+
(
10+
{ config, ... }:
11+
{
12+
networking.hostId = "00000000";
13+
disko.devices.disk.disk1.imageSize = "5G";
14+
environment.systemPackages = with pkgs; [
15+
chromium
16+
firefox
17+
];
18+
documentation.enable = false;
19+
system.stateVersion = config.system.nixos.release;
20+
disko.checkScripts = true;
21+
}
22+
)
23+
]).config.system.build.diskoImages

0 commit comments

Comments
 (0)