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

Support all current NixOS versions #127

Open
me-and opened this issue Oct 31, 2024 · 0 comments
Open

Support all current NixOS versions #127

me-and opened this issue Oct 31, 2024 · 0 comments

Comments

@me-and
Copy link

me-and commented Oct 31, 2024

#118 noted that this index only generates caches for the nixos-unstable branch. I've created my own fork so I can have GitHub generate the database for my system for me. However, it seems to me that it should be possible for this repository to generate databases for all the current channels.

I don't (currently) have a good enough grasp of Flakes to write a PR for this myself, but I can think of a number of ways to achieve this. My default suggestion would be to get and parse the JSON channel list from https://prometheus.nixos.org/api/v1/query?query=channel_revision, then create the workflow matrix dynamically based on the output.

(I'm reaching to that solution in part because I have existing Nix code for parsing the channel data from that Prometheus URL and for dynamically building a GitHub matrix job based on a previous workflow job. The piece I'm missing is only how to update flake.nix…)

A simpler option that would require occasional manual maintenance would be to just list the channels to build manually in flake.nix and update.yml, and update that list whenever a new stable NixOS channel is released.

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

No branches or pull requests

1 participant