Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Define NixOS tests in tests/nixos/default.nix rather than flake.nix #9105

Merged
merged 1 commit into from
Oct 7, 2023

Conversation

Ericson2314
Copy link
Member

Motivation

I think the our flake.nix is currently too large and too scary looking. I think this matters --- if Nix cannot dog-food itself in a way that is elegant, why should other people have confidence that their own code can be elegant and easy to maintain?

We could do this at many points in time, but I think around now, when we are thinking about stabilizing parts of Flakes, is an especially good time.

This is a first step to make the flake.nix smaller, and make individual components responsible for their own packaging. I hope we can do this many more follow-ups like it, until the top-level flake.nix is very small and just coordinates between other things.

Context

#7876

Priorities

Add 👍 to pull requests you find important.

I think the our `flake.nix` is currently too large and too scary looking.
I think this matters --- if Nix cannot dog-food itself in a way that is
elegant, why should other people have confidence that their own code can
be elegant and easy to maintain?

We could do this at many points in time, but I think around now, when we
are thinking about stabilizing parts of Flakes, is an especially good
time.

This is a first step to make the `flake.nix` smaller, and make
individual components responsible for their own packaging. I hope we can
do this many more follow-ups like it, until the top-level `flake.nix` is
very small and just coordinates between other things.
@roberth roberth merged commit c29b8ba into NixOS:master Oct 7, 2023
8 checks passed
@Ericson2314 Ericson2314 deleted the split-out-nixos-tests branch October 9, 2023 14:09
@fricklerhandwerk fricklerhandwerk added contributor-experience Developer experience for Nix contributors tests labels Jan 8, 2024
tebowy pushed a commit to tebowy/nix that referenced this pull request Jul 11, 2024
Define NixOS tests in `tests/nixos/default.nix` rather than `flake.nix`

(cherry picked from commit c29b8ba)
Change-Id: Ieae1b6476d95024485df7067e008013bc5542039
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contributor-experience Developer experience for Nix contributors tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants