Cluster secrets #100

Merged
max merged 17 commits from pr-cluster-secrets into master 2024-07-08 22:23:11 +03:00
7 changed files with 7 additions and 5 deletions
Showing only changes of commit 804e7b0363 - Show all commits

View file

@ -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;
}; };
} }

View file

@ -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;
};
}; };
} }