nixinate/tests/vmTest/nixinateeAdditional.nix
matthewcroughan 971bfe5d1f Add vmTest for Nixinate
This initializes ./test/default.nix which is referred to by the
flake.nix under the `checks` attribute. This default.nix should point to
all future tests, where they can be looked up and ran like:

nix build .#checks.x86_64-linux.vmTest

The test included is a simple NixOS VM Test. It uses Nixinate to deploy
a machine with `services.nginx.enable = true` set, and tests whether
nginx.service is started and reachable after deployment.
2022-04-19 05:43:22 +01:00

8 lines
248 B
Nix

# Configuration that will be added to the nixinatee node. Nixinate will deploy
# the combination of nixinateBase.nix + nixinateAdditional.nix
{
config = {
services.nginx.enable = true;
networking.firewall.allowedTCPPorts = [ 80 ];
};
}