diff options
| author | Isabella Bastaja <isabella@sorre.xyz> | 2026-08-26 21:35:04 +0200 |
|---|---|---|
| committer | Isabella Bastaja <isabella@sorre.xyz> | 2026-08-26 21:43:39 +0200 |
| commit | de49f84145c325f5c3e373ef5bc807520dd7fde0 (patch) | |
| tree | 0f7fe48a6d4fbbe632b32940ac888273663d3e06 /hosts/tower/web/nix-cache.nix | |
| parent | 6a67f7810a8c2c4cb57067ded919cf0c0ad4567a (diff) | |
tower: wip self hosted nix cache
Diffstat (limited to 'hosts/tower/web/nix-cache.nix')
| -rw-r--r-- | hosts/tower/web/nix-cache.nix | 20 |
1 files changed, 20 insertions, 0 deletions
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 ]; +} |
