srid / nixos-flake

A flake-parts module to manage NixOS and macOS machines, along with home-manager support, in a unified fashion.
https://community.flake.parts/nixos-flake
MIT License
175 stars 19 forks source link

Add nixosTest #11

Open srid opened 1 year ago

srid commented 1 year ago

https://nix.dev/tutorials/integration-testing-using-virtual-machines

We want to test that running nix run .#activate (on ./examples/*) will do what it is supposed to do.

srid commented 1 year ago

Open question: what do we use to test on macOS?

srid commented 1 year ago

Regressions like https://github.com/srid/nixos-flake/commit/fab75907cfc0c4e48ceab7a7194f019b55828895 could have been caught by this.