testLib.makeDiskoTest: split extraConfig into nixos-config, extraSystemConfig & extraInstallerConfig

This commit is contained in:
lassulus authored and mergify[bot] committed 2023-07-19 19:07:40 +00:00
1 parent 056637d3c9
commit 715c211dd7
10 files changed
+46 -40

No files matched your search

+1 -1
View File
@@ -10,7 +10,7 @@ makeDiskoTest {
machine.succeed("lsblk >&2");
'';
# so that the installer boots with a bcachefs enabled kernel
extraConfig = {
extraInstallerConfig = {
boot.supportedFilesystems = [ "bcachefs" ];
# disable zfs so we can support latest kernel
nixpkgs.overlays = [
+2 -2
View File
@@ -5,7 +5,7 @@ makeDiskoTest {
inherit pkgs;
name = "cli";
disko-config = ../example/complex.nix;
extraConfig = {
extraSystemConfig = {
fileSystems."/zfs_legacy_fs".options = [ "nofail" ]; # TODO find out why we need this!
};
testMode = "cli";
@@ -19,7 +19,7 @@ makeDiskoTest {
machine.succeed("mountpoint /ext4onzfs");
machine.succeed("mountpoint /ext4_on_lvm");
'';
extraConfig = {
extraInstallerConfig = {
boot.kernelModules = [ "dm-raid" "dm-mirror" ];
};
}
+2 -2
View File
@@ -5,7 +5,7 @@ makeDiskoTest {
inherit pkgs;
name = "complex";
disko-config = ../example/complex.nix;
extraConfig = {
extraSystemConfig = {
fileSystems."/zfs_legacy_fs".options = [ "nofail" ]; # TODO find out why we need this!
};
extraTestScript = ''
@@ -18,7 +18,7 @@ makeDiskoTest {
machine.succeed("mountpoint /ext4onzfs");
machine.succeed("mountpoint /ext4_on_lvm");
'';
extraConfig = {
extraInstallerConfig = {
boot.kernelModules = [ "dm-raid" "dm-mirror" ];
};
}
+1 -1
View File
@@ -10,7 +10,7 @@ let
allTestFilenames =
builtins.map (lib.removeSuffix ".nix") (
builtins.filter
(x: lib.hasSuffix ".nix" x && x != "default.nix" && x != "lib.nix")
(x: lib.hasSuffix ".nix" x && x != "default.nix")
(lib.attrNames (builtins.readDir ./.))
);
-1
View File
@@ -5,7 +5,6 @@ makeDiskoTest {
inherit pkgs;
name = "luks-lvm";
disko-config = ../example/luks-lvm.nix;
extraConfig.boot.initrd.luks.devices.crypted.preLVM = false;
extraTestScript = ''
machine.succeed("cryptsetup isLuks /dev/vda2");
machine.succeed("mountpoint /home");
+1 -1
View File
@@ -8,7 +8,7 @@ makeDiskoTest {
extraTestScript = ''
machine.succeed("mountpoint /home");
'';
extraConfig = {
extraInstallerConfig = {
boot.kernelModules = [ "dm-raid0" "dm-mirror" ];
};
}
+2 -2
View File
@@ -5,7 +5,7 @@ makeDiskoTest {
inherit pkgs;
name = "module";
disko-config = ../example/complex.nix;
extraConfig = {
extraSystemConfig = {
fileSystems."/zfs_legacy_fs".options = [ "nofail" ]; # TODO find out why we need this!
};
testMode = "module";
@@ -19,7 +19,7 @@ makeDiskoTest {
machine.succeed("mountpoint /ext4onzfs");
machine.succeed("mountpoint /ext4_on_lvm");
'';
extraConfig = {
extraInstallerConfig = {
boot.kernelModules = [ "dm-raid" "dm-mirror" ];
};
}
+1 -1
View File
@@ -18,7 +18,7 @@ makeDiskoTest {
'
""");
'';
extraConfig = {
extraSystemConfig = {
environment.systemPackages = [ pkgs.jq ];
};
}
+1 -2
View File
@@ -5,9 +5,8 @@ makeDiskoTest {
inherit pkgs;
name = "zfs";
disko-config = ../example/zfs.nix;
extraConfig = {
extraSystemConfig = {
fileSystems."/zfs_legacy_fs".options = [ "nofail" ]; # TODO find out why we need this!
boot.zfs.requestEncryptionCredentials = true;
};
extraTestScript = ''
machine.succeed("test -b /dev/zvol/zroot/zfs_testvolume");