Files
dotfiles/nixos/tako/services/attic.nix
servius bb68711814
Some checks failed
Flake checker / Build Nix targets (push) Has been cancelled
fix: use tcp instead of unix sockets for attic
2026-02-11 17:07:40 +05:30

23 lines
530 B
Nix

{config, ...}: let
address = "127.0.0.1:8052";
in {
sops = {
secrets."attic/jwt_secret" = {};
templates."attic.env".content = ''
ATTIC_SERVER_TOKEN_RS256_SECRET_BASE64=${config.sops.placeholder."attic/jwt_secret"}
'';
};
services = {
atticd = {
enable = true;
settings.listen = address;
environmentFile = config.sops.templates."attic.env".path;
};
caddy = {
virtualHosts."cache.darksailor.dev".extraConfig = ''
reverse_proxy ${address}
'';
};
};
}