1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-11-08 11:36:05 +01:00

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
No known key found for this signature in database
GPG key ID: 96E745BD17AA17ED
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
```

View file

@ -17,6 +17,11 @@ This release has the following notable changes:
The `"suggest"` alternative will remain for a while longer but may
also be deprecated for removal in the future.
- The Home Manager test suite has been removed from the main Nix Flake
since it caused unnecessary evaluations and downloads. Instead the
tests are available through a Nix Flake file inside the `tests`
directory. See [](#sec-tests) for example commands.
## State Version Changes {#sec-release-25.05-state-version-changes}
The state version in this release includes the changes below. These