nixos-config/tests
2024-03-09 11:24:20 +08:00
..
lib tests/lib: update function argument 2024-03-08 16:39:50 +08:00
modules/home-manager tests/modules/home-manager: init services.archivebox 2024-03-09 11:24:20 +08:00
default.nix tests/lib: init 2024-03-03 16:43:18 +08:00
README.adoc docs: add tests README 2024-03-09 10:39:35 +08:00

Yes, tests! We have tests for the major components of this NixOS configuration including the custom library, our custom NixOS modules, custom home-manager modules, and so on.

Each of the test suite follows how the upstream does their tests. For example, our home-manager module tests just copies what the upstream is doing.

You should be able to test them with the following command:

# These commands assume you're in the project root.

# This test is for home-manager module tests.
nix-shell --pure ./tests/modules/home-manager -A list

# This is for the library.
nix eval -f ./tests lib