From 7b8031796204071120e8f26dc40fab0200dfbebd Mon Sep 17 00:00:00 2001 From: isabel Date: Fri, 3 Jul 2026 12:59:19 +0100 Subject: [PATCH] nixos/services/attic: remove --- modules/nixos/services/attic.nix | 69 ------------------------------ modules/nixos/services/default.nix | 1 - 2 files changed, 70 deletions(-) delete mode 100644 modules/nixos/services/attic.nix diff --git a/modules/nixos/services/attic.nix b/modules/nixos/services/attic.nix deleted file mode 100644 index c8af6c0f..00000000 --- a/modules/nixos/services/attic.nix +++ /dev/null @@ -1,69 +0,0 @@ -{ - lib, - self, - config, - ... -}: -let - inherit (lib.modules) mkIf; - inherit (self.lib) mkServiceOption mkSecret; - - rdomain = config.networking.domain; - - cfg = config.garden.services.attic; -in -{ - options.garden.services.attic = mkServiceOption "attic" { - domain = "cache.${rdomain}"; - host = "[::]"; - port = 3003; - }; - - config = mkIf config.garden.services.attic.enable { - sops.secrets.attic-env = mkSecret { - file = "attic"; - key = "env"; - }; - - services = { - atticd = { - enable = true; - environmentFile = config.sops.secrets.attic-env.path; - - settings = { - listen = "${cfg.host}:${toString cfg.port}"; - - storage = { - bucket = "tgc-nix-cache"; - type = "s3"; - region = "auto"; - endpoint = "https://190n4.upcloudobjects.com"; - }; - - chunking = { - nar-size-threshold = 65536; - min-size = 16384; - avg-size = 65536; - max-size = 262144; - }; - - compression = { - type = "zstd"; - level = 12; - }; - - garbage-collection.interval = "8 hours"; - }; - }; - - nginx.virtualHosts.${cfg.domain} = { - locations."/" = { - proxyPass = "http://${cfg.host}:${toString cfg.port}"; - extraConfig = '' - client_max_body_size 1G; - ''; - }; - }; - }; - }; -} diff --git a/modules/nixos/services/default.nix b/modules/nixos/services/default.nix index 0870e5c2..6f1f7f44 100644 --- a/modules/nixos/services/default.nix +++ b/modules/nixos/services/default.nix @@ -4,7 +4,6 @@ ./akkoma ./anubis.nix ./arr.nix - ./attic.nix ./atuin.nix ./blahaj.nix ./borgbackup.nix -- 2.51.2