nix-config/aspects/hosts/_trantor/pocket-id.nix
2026-04-22 19:28:16 -03:00

30 lines
567 B
Nix

{
config,
lib,
inputs,
...
}:
let
mkNginxVHosts = inputs.self.lib.mkNginxVHosts;
in
{
services.pocket-id = {
enable = true;
environmentFile = config.age.secrets.pocket-id-key.path;
settings = {
APP_URL = "https://auth.baduhai.dev";
TRUST_PROXY = true;
ANALYTICS_DISABLED = true;
};
};
services.nginx.virtualHosts = mkNginxVHosts {
domains."auth.baduhai.dev".locations."/".proxyPass = "http://localhost:1411/";
};
age.secrets.pocket-id-key = {
file = "${inputs.self}/secrets/pocket-id.key.age";
};
}