Add scripts to check the status of nix_builder.

This commit is contained in:
Tom Alexander
2026-10-22 22:26:36 -04:00
parent 2e90872152
commit 983e081f16
3 changed files with 33 additions and 0 deletions

View File

@@ -10,6 +10,19 @@
...
}:
let
patchScriptBin =
filename: contents:
((pkgs.writeScriptBin filename contents).overrideAttrs (old: {
buildCommand = "${old.buildCommand}\n patchShebangs $out";
}));
cache_status_full = (
patchScriptBin "cache_status_full" (builtins.readFile ./files/cache_status_full.bash)
);
cache_status_latest = (
patchScriptBin "cache_status_latest" (builtins.readFile ./files/cache_status_latest.bash)
);
in
{
imports = [ ];
@@ -26,6 +39,8 @@
environment.systemPackages = with pkgs; [
nix_builder.packages.x86_64-linux.default
sqlite # For manually inspecting the database.
cache_status_full
cache_status_latest
];
environment.persistence."/persist" = lib.mkIf (config.me.mountPersistence) {