fix(cache): keep gc roots of nix-fast-build alive
All checks were successful
Discord / discord commits (push) Has been skipped
All checks were successful
Discord / discord commits (push) Has been skipped
This commit is contained in:
parent
58a3463060
commit
08e1645697
4 changed files with 6 additions and 6 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -10,6 +10,7 @@
|
|||
|
||||
# Generated by nix
|
||||
result*
|
||||
!results/
|
||||
.nixd.json
|
||||
|
||||
## AGS
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
pkgs,
|
||||
...
|
||||
}: let
|
||||
# FIXME: move nix-fast-build-pkg to overlays, make #nixFastChecks an attrset of all, packages, devices and aptDevices. add binary cache at apartment
|
||||
inherit (config.sops) secrets;
|
||||
|
||||
nix-fast-build-pkg = nix-fast-build.packages.${pkgs.system}.nix-fast-build.override {
|
||||
|
@ -32,16 +33,13 @@
|
|||
};
|
||||
|
||||
text = ''
|
||||
cd "$FLAKE" || return
|
||||
cd "$FLAKE/results" || return
|
||||
|
||||
# Home-assistant sometimes fails some tests when built with everything else
|
||||
nom build --no-link \
|
||||
.#nixosConfigurations.homie.config.services.home-assistant.package
|
||||
..#nixosConfigurations.homie.config.services.home-assistant.package
|
||||
|
||||
nix-fast-build -f .#nixFastChecks "$@"
|
||||
|
||||
mkdir -p results
|
||||
mv -f result-* results
|
||||
nix-fast-build -f ..#nixFastChecks "$@"
|
||||
'';
|
||||
};
|
||||
in {
|
||||
|
|
|
@ -13,6 +13,7 @@ self: {
|
|||
in {
|
||||
config = mkIf cfg.enable {
|
||||
nix = {
|
||||
# FIXME: infinite recursion if not set
|
||||
package = let
|
||||
nixdInput =
|
||||
findFirst
|
||||
|
|
0
results/.gitkeep
Normal file
0
results/.gitkeep
Normal file
Loading…
Reference in a new issue