nixos-tests lets you put nixos tests in a folder and run them with nix run .#nixosTest.my-test.
Example usage when combined with ez-configs: https://github.com/esselius/nixos-tests-flake-parts
To use these options, add to your flake inputs:
nixos-tests.url = "github:esselius/nixos-tests";and inside the mkFlake:
imports = [
inputs.nixos-tests.flakeModule
];Run nix flake lock and you're set.