Enable content-addressed derivations.
ref: https://www.tweag.io/blog/2020-09-10-nix-cas/
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user