Commit graph

55 commits

Author SHA1 Message Date
r-vdp
4cc8d306b4
Use nix-vm-test for our tests 2024-04-29 14:28:49 +02:00
r-vdp
4a8558119d
Add void option for compatibility with NixOS modules 2024-01-08 12:10:50 +01:00
r-vdp
107ed51c8e
Drop support for old test-driver 2024-01-08 12:10:30 +01:00
Aaron Andersen
990d487e52 fixup: use types.attrs instead of the nonexistent types.freeform 2023-11-10 16:29:40 +00:00
r-vdp
fc7ea5814d
Change name of driverInteractive option to match nixpkgs. 2023-10-12 11:16:50 +02:00
r-vdp
e51a1d3ed0
Provide an implementation for systemd-tmpfiles.
Co-authored-by: aanderse <aaron@fosslib.net>
Co-authored-by: jfroche <jfroche@pyxel.be>
2023-10-12 11:16:37 +02:00
r-vdp
b5ac42f1bd
Move test image definitions to a separate file. 2023-09-12 11:58:36 +02:00
r-vdp
2368eec16e
Use the lib functions to (de)activate profiles. 2023-07-05 14:58:06 +02:00
r-vdp
7ab72d8c7f
Add a pathsToLink option. 2023-07-05 14:33:42 +02:00
r-vdp
ce4b4bcf8b
Set the system path to a fixed location. 2023-07-05 14:33:42 +02:00
r-vdp
d5f138f939
Add support for environment.systemPackages. 2023-07-05 14:33:35 +02:00
r-vdp
e11571b70c
Add a comment. 2023-07-01 00:18:39 +02:00
r-vdp
46ecaad91e
Expose the config in the passthru and move values into the config. 2023-06-29 22:29:55 +02:00
r-vdp
9403324ea4
Register store paths in the nix DB at bootup of the VM. 2023-06-06 01:26:19 +02:00
r-vdp
cecf202ff4
Fix the logic to apply the test-driver patch only when needed. 2023-05-25 18:37:50 +02:00
r-vdp
ca46aa5ace
Don't create an nginx service by default. 2023-05-16 17:27:55 +02:00
r-vdp
8023bf4421
Remove unused service. 2023-05-16 17:27:28 +02:00
r-vdp
3ed3a26b56
Only apply the test-driver patch if nixpkgs doesn't have it yet. 2023-05-15 20:00:39 +02:00
r-vdp
8ec989863d
Improve naming and error reporting in VM tests. 2023-05-09 10:20:30 +02:00
Ramses
cead991210
Add a pre-populate subcommand. (#11) 2023-05-08 18:35:43 +02:00
r-vdp
9254ace18f
Make the backdoor service survive systemctl isolate. 2023-05-08 18:30:02 +02:00
r-vdp
39d298626d
Only include enabled units in the services.json file. 2023-05-08 18:28:06 +02:00
r-vdp
9bef20370c
Fix comment + indentation. 2023-05-06 23:49:04 +02:00
r-vdp
e9b8d19307
Use stable URLs for the ubuntu test images. 2023-05-06 23:43:50 +02:00
Ramses
af43744006
Add Aarch64 tests and include multiple test images. (#9) 2023-04-27 14:57:00 +02:00
r-vdp
9b62e4668b Carry a patch for the test driver instead of vendoring all the code. 2023-04-27 02:01:53 +02:00
r-vdp
22684b6ed6 Introduce a framework for automated VM tests. 2023-04-27 02:01:53 +02:00
r-vdp
db9ba03678 Introduce an intermediate target for systemd services.
Restarting the active targets seems to cause issues on Ubuntu,
restarting certain targets causes the display manager to exit.
2023-04-27 00:21:59 +02:00
r-vdp
29c967209a
Enable the upstream nginx module from nixpkgs. 2023-04-13 12:16:19 +02:00
r-vdp
40597a9540
Add the nixosModules special arg. 2023-04-13 12:12:41 +02:00
r-vdp
6f74507684
Set the nixpkgs platform as a module option. 2023-03-28 14:51:16 +02:00
r-vdp
6c318867c1
Formatting. 2023-03-24 16:35:57 +01:00
r-vdp
015935f46e
Move the test module into a separate dir. 2023-03-24 16:35:02 +01:00
r-vdp
ce4cf7149d
Major overhaul of the nix side of things, part II. 2023-03-24 16:03:20 +01:00
r-vdp
9759c2da12
Major overhaul of the nix side of things. 2023-03-24 14:14:20 +01:00
r-vdp
84a4ddac1e
Allow to easily override the assertion for supported distros. 2023-03-23 14:57:18 +01:00
r-vdp
c9a47913f4
Add the possibility to define assertions to be checked before activation. 2023-03-22 15:52:56 +01:00
r-vdp
19edbdddb1
Add an assertion to make sure that the services passed to systemd-manager exist. 2023-03-22 11:56:58 +01:00
r-vdp
58353436c2
Complete rework of the systemd logic. 2023-03-21 16:14:12 +01:00
r-vdp
6a7910bab1
Avoid an unneeded extra "etc" directory. 2023-03-17 15:47:56 +01:00
R-VdP
daae141949
Add WantedBy and RequiredBy to the JSON file produced by Nix. 2023-03-15 20:43:50 +01:00
R-VdP
cf91b29724
WIP 2023-03-08 00:24:10 +01:00
R-VdP
3280073a0f
Implement --target-host 2023-02-20 20:19:54 +01:00
R-VdP
d428df9c72
Add a deactivation script to the system-manager profile. 2023-02-17 12:37:02 +01:00
R-VdP
e2f386c21e
Set stateVersion by default. 2023-02-15 15:12:39 +01:00
R-VdP
40c413d25a
Set defaults for the system-manager options. 2023-02-15 15:11:44 +01:00
R-VdP
cf7d0f76d3
Fix the makeServiceConfig function. 2023-02-14 13:39:10 +01:00
R-VdP
b3c7f71456
Implement files under /etc 2023-02-13 20:24:23 +01:00
R-VdP
9aa059887b
Work on properly implementing the activation of systemd services. 2023-02-09 15:04:27 +00:00
R-VdP
c3be9ceb19
Write generation state into a state file and restructure the services.json file produced by nix. 2023-02-09 10:25:04 +00:00