Cluster secrets #100
7 changed files with 7 additions and 5 deletions
|
@ -1,11 +1,9 @@
|
||||||
{ config, depot, ... }:
|
{ cluster, depot, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
age.secrets.cachixDeployToken.file = ./credentials/${config.networking.hostName}.age;
|
|
||||||
|
|
||||||
services.cachix-agent = {
|
services.cachix-agent = {
|
||||||
enable = true;
|
enable = true;
|
||||||
credentialsFile = config.age.secrets.cachixDeployToken.path;
|
credentialsFile = cluster.config.services.cachix-deploy-agent.secrets.token.path;
|
||||||
package = depot.packages.cachix;
|
package = depot.packages.cachix;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,10 @@
|
||||||
{
|
{
|
||||||
services.cachix-deploy-agent = {
|
services.cachix-deploy-agent = { config, ... }: {
|
||||||
nodes.agent = [ "checkmate" "grail" "prophet" "VEGAS" "thunderskin" ];
|
nodes.agent = [ "checkmate" "grail" "prophet" "VEGAS" "thunderskin" ];
|
||||||
nixos.agent = ./agent.nix;
|
nixos.agent = ./agent.nix;
|
||||||
|
secrets.token = {
|
||||||
|
nodes = config.nodes.agent;
|
||||||
|
shared = false;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue