}
'';
+ log-local-builds = writeShellScript "log-local-builds" ''
+ echo "$OUT_PATHS" >> /var/log/local-builds
+ '';
+
clientConfig = writeText "clientConfig" ''
{ lib, ... }: {
services.trustix-nix-cache = {
percentage.minimum = 66;
};
};
-
+ nix.extraOptions = '''
+ post-build-hook = ${log-local-builds}
+ ''';
}
'';
"nixos-rebuild switch --show-trace",
)
clint.succeed("nix-build '<nixpkgs>' -A hello")
+ clint.fail("grep hello /var/log/local-builds")
'';
}