home-manager: move tests into new test flake

Having the tests available in the main Nix Flake introduces
unnecessary evaluation for non-developer users and, worse, a
dependency on the nmt library.

Fixes #6354
This commit is contained in:
Robert Helgesson
2025-01-24 19:59:46 +01:00
parent b93e17c73c
commit 1b9fe46e9f
5 changed files with 62 additions and 22 deletions

View File

@@ -29,10 +29,16 @@ through
$ nix-shell --pure tests -A run.alacritty-empty-settings
```
However, those invocations will impurely source the system's nixpkgs,
and may cause failures. To run against the nixpkgs from the flake.lock,
However, those invocations will impurely source the system's Nixpkgs,
and may cause failures. To run against the Nixpkgs from the `flake.lock` file,
use instead e.g.
``` shell
$ nix develop --ignore-environment .#all
$ nix build --reference-lock-file flake.lock ./tests#test-all
```
or
``` shell
$ nix build --reference-lock-file flake.lock ./tests#test-alacritty-empty-settings
```