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

4 commits

Author SHA1 Message Date
Matt Sturgeon
87044c5722 tests: explicitly define NIX_CONFIG
Ensure NIX_CONFIG is correctly configured for the tests command.

It is possible that someone may enable experimental features on an
ad-hoc basis, e.g. via the `--extra-experimental-features` CLI flag.
In this scenario, the tests script cannot assume they are already
enabled.

In the future, we may also wish to configure other things, like extra
binary substitutors.
2025-11-01 14:29:06 -05:00
Matt Sturgeon
7248450206 tests: add fzf dependency to package
The tests script depends on fzf when asking which test to run.
Explicitly make it available via `runtimeInputs`.
2025-11-01 14:29:06 -05:00
Matt Sturgeon
9278414dcc tests: switch package to writeShellApplication 2025-11-01 14:29:06 -05:00
Matt Sturgeon
5fb2203af7 tests: move package to its own file
Extract the `tests` package from `flake.nix`  into its own file
`tests/package.nix`.

This a) de-couples it from the flake (to a degree) and b) allows more
neatly using the callPackage pattern.
2025-11-01 14:29:06 -05:00