A simple flake setup with tests and VM support

This commit is contained in:
Henrik
2025-10-09 22:31:48 +02:00
parent cc3a2ed192
commit 814d54bcf4
11 changed files with 399 additions and 0 deletions

View File

@@ -1,2 +1,16 @@
# matrix
Who needs something else?
# Nixos Setup
## Automatic Tests
Using the nixos framework, tests can be written and performed. See https://nixos.org/manual/nixos/stable/index.html#sec-nixos-tests
Perform all tests using `nix flake check`. Call a specific test using `nix build .#checks.x86_64-linux.test1`
## Testing the VM
The VM can be build using `nixos-rebuild build-vm --flake .#matrix` and started using `result/bin/run-nixos-vm`.
See also https://gist.github.com/FlakM/0535b8aa7efec56906c5ab5e32580adf