Files
dotfiles/nixos/tako/services/attic.nix
servius 6b31922615
Some checks failed
Flake checker / Build Nix targets (push) Has been cancelled
feat: Added attic ATTIC_SERVER_TOKEN_RS256_SECRET_BASE64
2026-02-11 16:56:23 +05:30

23 lines
539 B
Nix

{config, ...}: let
socket = "/run/attic/attic.sock";
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 = socket;
environmentFile = config.sops.templates."attic.env".path;
};
caddy = {
virtualHosts."cache.darksailor.dev".extraConfig = ''
reverse_proxy unix/${socket}
'';
};
};
}