-
Notifications
You must be signed in to change notification settings - Fork 26
nixosConfiguration support for std-action #40
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
Comments
This shouldn't fall out of scope. If there's no kvm build necessary, it should even build on GitHub actions. The nixos blocktype is implemented here, so any modification to the blocktype necessary to be eligible for std-action needs to go there: https://github.com/divnix/hive/blob/main/src/blockTypes/nixosConfigurations.nix Proviso should be optional: https://github.com/divnix/std-action/blob/4d88d45cacadad99e60218b4ed83037a5884a33c/discover/eval.sh#L54 — but it can be implemented so as to avoid building a nixos build twice, since the only reasonable "registry" of a finished build is the cache, we can use the normal nix build proviso: https://github.com/divnix/std/blob/main/src/std/fwlib/actions/build-proviso.sh While ❯ nix build '.#__std.actions.x86_64-linux."david"."nixosConfigurations"."meerkat"."build"'
❯ cat result
#!/nix/store/gwgqdl0242ymlikq9s9s62gkp5cvyal3-bash-5.2p37/bin/bash
bin=$(nix build .#nixosConfigurations.david-meerkat.system --no-link --print-out-paths)/sw/bin
export PATH=$bin:$PATH
nixos-rebuild build --flake "$PRJ_ROOT" $@ In that |
You can check out what the |
Thanks @blaggacao for the detailed explanation! Let me give this a shot and prepare a PR For now, my approach would be
|
Doesn't generate enough details for
std-action
(missingproviso
/drvPath
attrs innix eval .#__std.ci.x86_64-linux.
)Is this out of scope since it falls outside the cell block's scope (harvest/collect/transform)?
I'm not familiar with the internals of std/hive, but happy to implement it if someone can guide me!
The text was updated successfully, but these errors were encountered: