2024-12-11 12:29:24 -05:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}: let
|
|
|
|
inherit (builtins) attrValues;
|
|
|
|
inherit (config.sops) secrets;
|
|
|
|
|
|
|
|
nixFastBuild = pkgs.writeShellApplication {
|
|
|
|
name = "nixFastBuild";
|
|
|
|
|
|
|
|
runtimeInputs = attrValues {
|
|
|
|
inherit
|
|
|
|
(pkgs)
|
|
|
|
gnugrep
|
|
|
|
nix-fast-build
|
|
|
|
nix-output-monitor
|
|
|
|
;
|
|
|
|
};
|
|
|
|
|
|
|
|
text = ''
|
|
|
|
cd "$FLAKE/results" || return
|
|
|
|
|
2024-12-16 15:51:41 -05:00
|
|
|
nix-fast-build -f ..#nixFastChecks.aptDevices "$@"
|
2024-12-11 12:29:24 -05:00
|
|
|
'';
|
|
|
|
};
|
|
|
|
in {
|
|
|
|
services.nix-serve = {
|
|
|
|
enable = true;
|
|
|
|
secretKeyFile = secrets.apt-binary-cache-key.path;
|
|
|
|
};
|
|
|
|
|
|
|
|
environment.systemPackages = [pkgs.nix-fast-build nixFastBuild];
|
|
|
|
}
|