fix(cache): keep gc roots of nix-fast-build alive
All checks were successful
Discord / discord commits (push) Has been skipped

This commit is contained in:
matt1432 2024-12-11 08:30:13 -05:00
parent 58a3463060
commit 08e1645697
4 changed files with 6 additions and 6 deletions

1
.gitignore vendored
View file

@ -10,6 +10,7 @@
# Generated by nix # Generated by nix
result* result*
!results/
.nixd.json .nixd.json
## AGS ## AGS

View file

@ -6,6 +6,7 @@
pkgs, pkgs,
... ...
}: let }: 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; inherit (config.sops) secrets;
nix-fast-build-pkg = nix-fast-build.packages.${pkgs.system}.nix-fast-build.override { nix-fast-build-pkg = nix-fast-build.packages.${pkgs.system}.nix-fast-build.override {
@ -32,16 +33,13 @@
}; };
text = '' text = ''
cd "$FLAKE" || return cd "$FLAKE/results" || return
# Home-assistant sometimes fails some tests when built with everything else # Home-assistant sometimes fails some tests when built with everything else
nom build --no-link \ nom build --no-link \
.#nixosConfigurations.homie.config.services.home-assistant.package ..#nixosConfigurations.homie.config.services.home-assistant.package
nix-fast-build -f .#nixFastChecks "$@" nix-fast-build -f ..#nixFastChecks "$@"
mkdir -p results
mv -f result-* results
''; '';
}; };
in { in {

View file

@ -13,6 +13,7 @@ self: {
in { in {
config = mkIf cfg.enable { config = mkIf cfg.enable {
nix = { nix = {
# FIXME: infinite recursion if not set
package = let package = let
nixdInput = nixdInput =
findFirst findFirst

0
results/.gitkeep Normal file
View file