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

Document how to build a NixOS system toplevel #1365

Open
jpds opened this issue Feb 25, 2024 · 3 comments
Open

Document how to build a NixOS system toplevel #1365

jpds opened this issue Feb 25, 2024 · 3 comments

Comments

@jpds
Copy link

jpds commented Feb 25, 2024

Is your feature request related to a problem? Please describe.

Hydra seems to be great for building nixpkgs, or a subset of this. I've deployed my own Hydra and have my own local S3 cluster and the two work great.

However, I do not wish to build the (multi-TB) entirety of nixpkgs as my systems deployments requires a significantly tiny number of packages within this.

Instead, I'd like to use Hydra to simply build my systems' toplevels and push the relevant artefacts to the S3 store - then my systems can pull those down without having to do any parts of the builds themselves.

However, this usecase isn't documented in the examples.

@alejandro-angulo
Copy link

alejandro-angulo commented Mar 3, 2024

@jpds
Copy link
Author

jpds commented Mar 3, 2024

@alejandro-angulo No, that disables the usage of the binary cache within Hydra.

I want to know exactly what I need to stick on my nixosConfigurations.systemName = nixpkgs.lib.nixosSystem in terms of a hydraJob so Hydra can build these.

@9p4
Copy link

9p4 commented Apr 3, 2024

Take a look at https://git.sr.ht/~fd/nix-configs/tree/main/item/hydra.nix

hydraJobs = import ./hydra.nix { inherit inputs outputs; };

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

3 participants