Skip to content

Commit 06a3e1c

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 06a3e1c

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

tests/make-disk-image-zfs.nix

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
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+
14+
# Adds some weight to the closure size to test real world usage
15+
disko.devices.disk.disk1.imageSize = "5G";
16+
environment.systemPackages = with pkgs; [
17+
chromium
18+
firefox
19+
];
20+
21+
documentation.enable = false;
22+
system.stateVersion = config.system.nixos.release;
23+
disko.checkScripts = true;
24+
}
25+
)
26+
]).config.system.build.diskoImages

0 commit comments

Comments
 (0)