Big readme update and more

Updated readme with tons of information.
Made kazuki a hercules agent.
Fixed secrets ownerships.
Started working on a custom installer iso.
Changed helix theme.
This commit is contained in:
Nikodem Rabuliński 2023-09-16 21:51:35 +02:00
parent ef44ff6943
commit fb0c1a4451
No known key found for this signature in database
GPG key ID: FF629AA9E08138DB
17 changed files with 164 additions and 39 deletions

5
hosts/common/default.nix Normal file
View file

@ -0,0 +1,5 @@
{
imports = [
./hercules.nix
];
}

24
hosts/common/hercules.nix Normal file
View file

@ -0,0 +1,24 @@
{
config,
pkgs,
lib,
...
}: {
options.common.hercules.enable = lib.mkEnableOption "Enables hercules-ci-agent with my configuration";
config = lib.mkIf config.common.hercules.enable {
age.secrets.hercules-token = {
file = ../../secrets/hercules-token.age;
owner = config.systemd.services.hercules-ci-agent.serviceConfig.User;
};
services.hercules-ci-agent = {
enable = true;
settings = {
clusterJoinTokenPath = config.age.secrets.hercules-token.path;
concurrentTasks = lib.mkDefault 4;
binaryCachesPath = pkgs.writeText "empty-caches.json" "{}";
};
};
};
}