flake/systems/etna/default.nix

54 lines
1.1 KiB
Nix
Raw Normal View History

2024-02-02 15:20:48 +01:00
{config, ...}: {
age.secrets = let
path = ../../secrets/etna;
in {
tunnelCreds = {
file = "${path}/tunnelCreds.age";
owner = "cloudflared";
group = "cloudflared";
};
apiRsEnv.file = "${path}/apiRsEnv.age";
2024-02-02 16:20:46 +01:00
ukubotRsEnv.file = "${path}/ukubotRsEnv.age";
2024-02-02 15:20:48 +01:00
};
2024-01-18 17:28:47 +01:00
boot.loader.systemd-boot.enable = true;
2024-02-02 15:20:48 +01:00
services = {
api-rs = {
enable = true;
environmentFile = config.age.secrets.apiRsEnv.path;
};
2024-02-02 16:20:46 +01:00
ukubot-rs = {
enable = true;
environmentFile = config.age.secrets.ukubotRsEnv.path;
};
2024-02-03 16:19:55 +01:00
vaultwarden = {
enable = true;
config = {
DOMAIN = "https://bw.uku3lig.net";
SIGNUPS_ALLOWED = false;
ROCKET_ADDRESS = "::1";
ROCKET_PORT = 8222;
};
};
2024-02-02 15:20:48 +01:00
cloudflared = {
enable = true;
tunnels."57f51ad7-25a0-45f3-b113-0b6ae0b2c3e5" = {
credentialsFile = config.age.secrets.tunnelCreds.path;
ingress = {
"api.uku3lig.net" = "http://localhost:5000";
2024-02-03 16:19:55 +01:00
"bw.uku3lig.net" = "http://localhost:8222";
2024-02-02 15:20:48 +01:00
};
default = "http_status:404";
};
};
};
2024-01-18 15:15:14 +01:00
}