From de49f84145c325f5c3e373ef5bc807520dd7fde0 Mon Sep 17 00:00:00 2001 From: Isabella Bastaja Date: Wed, 26 Aug 2026 21:35:04 +0200 Subject: tower: wip self hosted nix cache --- hosts/tower/web/default.nix | 1 + hosts/tower/web/nix-cache.nix | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 hosts/tower/web/nix-cache.nix (limited to 'hosts') diff --git a/hosts/tower/web/default.nix b/hosts/tower/web/default.nix index 556c8c4..b5c6700 100644 --- a/hosts/tower/web/default.nix +++ b/hosts/tower/web/default.nix @@ -7,5 +7,6 @@ ./vaultwarden.nix ./caddy.nix ./kanboard.nix + ./nix-cache.nix ]; } diff --git a/hosts/tower/web/nix-cache.nix b/hosts/tower/web/nix-cache.nix new file mode 100644 index 0000000..731147b --- /dev/null +++ b/hosts/tower/web/nix-cache.nix @@ -0,0 +1,20 @@ +{ pkgs, ... }: { + services.atticd = { + enable = true; + user = "atticd"; + group = "atticd"; + mode = "monolithic"; + environmentFile = "/var/lib/secrets/atticd.env"; + settings = { + listen = "127.0.0.1:1345"; + allowed-hosts = [ "nix-cache.sorre.internal" ]; + database.url = "sqlite:///var/lib/atticd/server.db?mode=rwc"; + storage = { + type = "local"; + path = "/var/lib/atticd/storage"; + }; + }; + }; + + environment.systemPackages = [ pkgs.attic-client ]; +} -- cgit v1.3.1