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
|
# Generated by nix
|
||||||
result*
|
result*
|
||||||
|
!results/
|
||||||
.nixd.json
|
.nixd.json
|
||||||
|
|
||||||
## AGS
|
## AGS
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
|
@ -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
0
results/.gitkeep
Normal file
Loading…
Reference in a new issue