mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 04:58:01 +00:00
Gabriel Arazas
11806b9c4b
Most of it is specifically for NixOS usage but in case that it is possible for independent desktop sessions entirely made in home-manager especially in non-NixOS systems, it will be... nice. |
||
---|---|---|
.. | ||
lib | ||
modules/home-manager | ||
default.nix | ||
README.adoc |
Yes, tests! Because apparently, letting desktop users BE the developers of their own operating system is such as a GOOOOOOOOD idea…
Anyways, as part of cosplaying of a wannabe developer, 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 because it is using nix-lib-nmt
# which is only working in pure mode.
nix-shell --pure ./tests/modules/home-manager -A list
# This is for the library.
nix eval -f ./tests lib