depot/cluster/services/forge/default.nix

34 lines
795 B
Nix
Raw Normal View History

{ config, depot, ... }:
2023-07-21 02:26:26 +03:00
{
services.forge = {
nodes.server = [ "VEGAS" ];
nixos.server = ./server.nix;
2024-07-04 05:25:56 +03:00
meshLinks.server = {
name = "forge";
link.protocol = "http";
};
secrets = with config.services.forge.nodes; {
oidcSecret = {
nodes = server;
owner = "forgejo";
};
dbCredentials.nodes = server;
};
2023-07-21 02:26:26 +03:00
};
2024-07-04 05:25:56 +03:00
ways.forge.target = let
host = builtins.head config.services.forge.nodes.server;
in config.hostLinks.${host}.forge.url;
2024-07-02 18:07:43 +03:00
garage = {
keys.forgejo.locksmith.nodes = config.services.forge.nodes.server;
2024-07-02 18:07:43 +03:00
buckets.forgejo.allow.forgejo = [ "read" "write" ];
};
monitoring.blackbox.targets.forge = {
address = "https://forge.${depot.lib.meta.domain}/api/v1/version";
module = "https2xx";
};
2023-07-21 02:26:26 +03:00
}