Skip to content

Conversation

@jfroche
Copy link
Member

@jfroche jfroche commented Jan 22, 2026

Users consuming system-manager as a flake input only need the package, lib, and modules - not the test infrastructure. By moving VM tests to a subflake, the main flake stays minimal with nixpkgs as its only input.

This separation enables CI to run fast package checks independently from slow VM tests, and provides proper flake.lock version pinning for test dependencies like nix-vm-test (replacing the inline fetchTarball).

Future test dependencies (e.g., sops-nix for compatibility testing in #270) can be added to testFlake without touching the main flake.

@jfroche jfroche force-pushed the subflake branch 2 times, most recently from 4f8a39c to 865678b Compare January 22, 2026 11:03
Users consuming system-manager as a flake input only need the package,
lib, and modules - not the test infrastructure. By moving VM tests to
a subflake, the main flake stays minimal with nixpkgs as its only input.

This separation enables CI to run fast package checks independently from
slow VM tests, and provides proper flake.lock version pinning for test
dependencies like nix-vm-test (replacing the inline fetchTarball).

Future test dependencies (e.g., sops-nix for compatibility testing in
#270) can be added to testFlake without touching the main flake.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants