fix: use tcp instead of unix sockets for attic
Some checks failed
Flake checker / Build Nix targets (push) Has been cancelled

This commit is contained in:
2026-02-11 17:07:40 +05:30
parent 6b31922615
commit bb68711814

View File

@@ -1,5 +1,5 @@
{config, ...}: let {config, ...}: let
socket = "/run/attic/attic.sock"; address = "127.0.0.1:8052";
in { in {
sops = { sops = {
secrets."attic/jwt_secret" = {}; secrets."attic/jwt_secret" = {};
@@ -10,12 +10,12 @@ in {
services = { services = {
atticd = { atticd = {
enable = true; enable = true;
settings.listen = socket; settings.listen = address;
environmentFile = config.sops.templates."attic.env".path; environmentFile = config.sops.templates."attic.env".path;
}; };
caddy = { caddy = {
virtualHosts."cache.darksailor.dev".extraConfig = '' virtualHosts."cache.darksailor.dev".extraConfig = ''
reverse_proxy unix/${socket} reverse_proxy ${address}
''; '';
}; };
}; };