feat: setup attic

This commit is contained in:
Jan-Bulthuis committed 2026-10-28 14:58:10 +01:00
1 parent 9c07d9e047
commit e536ec50d2
2 files changed
+25 -4

No files matched your search

+21
View File
@@ -1,4 +1,6 @@
{
config,
inputs,
...
}:
@@ -32,6 +34,7 @@
};
modules.impermanence.directories = [
"/var/lib/private/matterjs-server"
"/var/lib/private/atticd"
{
directory = "/var/lib/hass";
user = "hass";
@@ -68,8 +71,26 @@
};
networking.firewall.allowedTCPPorts = [
8123 # Home Assistant
8080 # Attic
];
# Attic binary cache, served as cache.ib.baksteeninc.net behind the reverse proxy
sops.secrets."atticd/env".sopsFile = "${inputs.secrets}/secrets/ws-home.enc.yaml";
services.atticd = {
enable = true;
environmentFile = config.sops.secrets."atticd/env".path;
settings = {
listen = "[::]:8080";
api-endpoint = "https://cache.ib.baksteeninc.net/";
compression.type = "zstd";
garbage-collection = {
interval = "12 hours";
# Drop paths that have not been accessed for this long
default-retention-period = "3 months";
};
};
};
# Set up hardware
imports = [ ./hardware-configuration.nix ];
}