refactor(build-image): Extract package set loading into helper
Some upcoming changes might require the Nix build to be split into multiple separate nix-build invocations of different expressions, thus splitting this out is useful. It also fixes an issue where `build-image/default.nix` might be called in an environment where no Nix channels are configured.
This commit is contained in:
parent
3939722063
commit
d9168e3e4d
4 changed files with 87 additions and 65 deletions
|
|
@ -25,7 +25,9 @@ rec {
|
|||
nixery-server = callPackage ./server { };
|
||||
|
||||
# Implementation of the image building & layering logic
|
||||
nixery-build-image = (import ./build-image { inherit pkgs; }).wrapper;
|
||||
nixery-build-image = (import ./build-image {
|
||||
pkgSource = "path!${<nixpkgs>}";
|
||||
}).wrapper;
|
||||
|
||||
# Use mdBook to build a static asset page which Nixery can then
|
||||
# serve. This is primarily used for the public instance at
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue