Enable content-addressed derivations.

ref: https://www.tweag.io/blog/2020-09-10-nix-cas/
This commit is contained in:
Tom Alexander
2025-11-29 23:08:03 -05:00
parent 5de1c0cb56
commit a547b3b04b
2 changed files with 20 additions and 16 deletions

View File

@@ -58,7 +58,8 @@ in
{
nix.distributedBuilds = true;
nix.settings.substituters = lib.mkForce [ "ssh://hydra" ];
# https://nix.dev/manual/nix/2.32/store/types/ssh-store.html
nix.settings.substituters = lib.mkForce [ "ssh://hydra?compress=true&log-fd=2&max-connections=4" ];
nix.settings.substitute = lib.mkForce true;
nix.settings.post-build-hook = pkgs.writeShellScript "post-build-hook" ''
set -euo pipefail