infrastructure/checks
Fabian Hauser afd284a008
Some checks failed
CI / build (push) Has been cancelled
Disable backup and outgoing mail in module test
2025-03-25 23:59:22 +02:00
..
nixos-configurations Apply treefmt 2025-03-25 14:10:54 +02:00
nixos-modules Disable backup and outgoing mail in module test 2025-03-25 23:59:22 +02:00
packages Reorganize imports to prevent infinite recursions 2025-03-25 12:49:36 +02:00
default.nix Improve nixosModules checks to include all modules by default. 2025-03-25 15:46:08 +02:00
README.md Update build process ci and docs 2025-03-25 15:04:59 +02:00

Tests

nix flake check currently:

  • builds all nixos-configurations
  • builds all packages
  • runs all nixos-module tests
  • checks all deployment configurations
  • checks repository formatting.

Module Tests

We test our nixos modules with NixOS tests. Running nixos tests requires QEMU virtualisation, so make sure you have KVM virtualisation support enabled.

Run all: nix build .#checks.x86_64-linux.nixos-modules
Run single test: nix build .#checks.x86_64-linux.nixos-modules.entries.vm-test-run-testNameAsInDerivationName

Run Test Interactively

nix run .#checks.x86_64-linux.nixos-modules.entries.vm-test-run-testNameAsInDerivationName.driverInteractive

See upstream documentation for more details.