Skip to content

Commit

Permalink
feat: bk/icarus auto cachix (#1017)
Browse files Browse the repository at this point in the history
  • Loading branch information
johnae authored Nov 24, 2024
1 parent be9f657 commit 3f9da54
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion hosts/x86_64-linux/icarus.nix
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@
services.buildkite-agents.nix-build = {
tokenPath = config.age.secrets.buildkite-token.path;
privateSshKeyPath = config.age.secrets.buildkite-ssh-key.path;
runtimePackages = [pkgs.bash pkgs.gnutar pkgs.gzip pkgs.git pkgs.nix pkgs.cachix];
extraConfig = ''
spawn=4
'';
Expand All @@ -115,7 +116,13 @@
hooks = {
environment = ''
CACHIX_SIGNING_KEY="$(head -1 ${config.age.secrets.cachix-signing-key.path})"
export CACHIX_SIGNING_KEY
CACHE_NAME=insane
export CACHIX_SIGNING_KEY CACHE_NAME
'';
command = ''
#!/usr/bin/env bash
cachix use "$CACHE_NAME"
cachix watch-exec "$CACHE_NAME" -- "$BUILDKITE_COMMAND"
'';
};
};
Expand Down

0 comments on commit 3f9da54

Please sign in to comment.