cluster/services/cachix-deploy-agent: use cluster secrets

This commit is contained in:
Max Headroom 2024-07-08 16:17:47 +02:00
parent 0c4e603e86
commit 804e7b0363
7 changed files with 7 additions and 5 deletions

View file

@ -1,11 +1,9 @@
{ config, depot, ... }:
{ cluster, depot, ... }:
{
age.secrets.cachixDeployToken.file = ./credentials/${config.networking.hostName}.age;
services.cachix-agent = {
enable = true;
credentialsFile = config.age.secrets.cachixDeployToken.path;
credentialsFile = cluster.config.services.cachix-deploy-agent.secrets.token.path;
package = depot.packages.cachix;
};
}

View file

@ -1,6 +1,10 @@
{
services.cachix-deploy-agent = {
services.cachix-deploy-agent = { config, ... }: {
nodes.agent = [ "checkmate" "grail" "prophet" "VEGAS" "thunderskin" ];
nixos.agent = ./agent.nix;
secrets.token = {
nodes = config.nodes.agent;
shared = false;
};
};
}