diff options
author | K900 <me@0upti.me> | 2024-04-01 21:21:32 +0300 |
---|---|---|
committer | K900 <me@0upti.me> | 2024-04-03 16:16:11 +0300 |
commit | 7b602cff5c260ec98497253417ef17fffa1a0692 (patch) | |
tree | b015f21f011f8ff76aac50fd1eeaad1a7d354793 /nixos/lib | |
parent | ee457b8b080168886039694a61ce098750fb1b79 (diff) |
nixos/tests/installer: avoid create_machine, clean up
- use normal VM nodes for target, with some extra trickery - rename preBootCommands to postBootCommands to match its actual intent - rename VMs to installer and target, so they're not all called machine - set platforms on non-UEFI tests properly - add missing packages for systemd-boot test - fix initrd secrets leaking into the store and having wrong paths
Diffstat (limited to 'nixos/lib')
-rw-r--r-- | nixos/lib/testing/meta.nix | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/nixos/lib/testing/meta.nix b/nixos/lib/testing/meta.nix index 8d053ce86d888..529fe714fcf6c 100644 --- a/nixos/lib/testing/meta.nix +++ b/nixos/lib/testing/meta.nix @@ -34,6 +34,13 @@ in Sets the [`meta.broken`](https://nixos.org/manual/nixpkgs/stable/#var-meta-broken) attribute on the [{option}`test`](#test-opt-test) derivation. ''; }; + platforms = lib.mkOption { + type = types.listOf types.raw; + default = lib.platforms.linux; + description = '' + Sets the [`meta.platforms`](https://nixos.org/manual/nixpkgs/stable/#var-meta-platforms) attribute on the [{option}`test`](#test-opt-test) derivation. + ''; + }; }; }; default = {}; |