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
result*
!results/
.nixd.json
## AGS

View file

@ -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 {

View file

@ -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
View file