summaryrefslogtreecommitdiff
path: root/systems
diff options
context:
space:
mode:
Diffstat (limited to 'systems')
-rw-r--r--systems/atlas/attic.nix35
-rw-r--r--systems/atlas/default.nix1
-rw-r--r--systems/atlas/nginx.nix5
-rw-r--r--systems/default.nix1
4 files changed, 0 insertions, 42 deletions
diff --git a/systems/atlas/attic.nix b/systems/atlas/attic.nix
deleted file mode 100644
index d7d65c4..0000000
--- a/systems/atlas/attic.nix
+++ /dev/null
@@ -1,35 +0,0 @@
-{
- config,
- secretsDir,
- ...
-}: {
- age.secrets.atticCreds.file = secretsDir + "/atticCreds.age";
-
- services.atticd = {
- enable = true;
- credentialsFile = config.age.secrets.atticCreds.path;
-
- settings = {
- listen = "[::]:5000";
- api-endpoint = "https://cache.${config.networking.domain}/";
-
- compression.type = "zstd";
-
- chunking = let
- kb = 1024;
- in {
- nar-size-threshold = 64 * kb;
- min-size = 16 * kb;
- avg-size = 64 * kb;
- max-size = 256 * kb;
- };
-
- storage = {
- type = "s3";
- region = "us-west-4";
- bucket = "getchoo-attic";
- endpoint = "https://s3.us-west-004.backblazeb2.com";
- };
- };
- };
-}
diff --git a/systems/atlas/default.nix b/systems/atlas/default.nix
index 7b0955a..8cba9bd 100644
--- a/systems/atlas/default.nix
+++ b/systems/atlas/default.nix
@@ -6,7 +6,6 @@
}: {
imports = [
./hardware-configuration.nix
- ./attic.nix
./miniflux.nix
./nginx.nix
];
diff --git a/systems/atlas/nginx.nix b/systems/atlas/nginx.nix
index dc40282..866b605 100644
--- a/systems/atlas/nginx.nix
+++ b/systems/atlas/nginx.nix
@@ -13,17 +13,12 @@ in {
services.nginx = {
enable = true;
- clientMaxBodySize = "2048m"; # 2GB
recommendedGzipSettings = true;
recommendedOptimisation = true;
recommendedProxySettings = true;
recommendedTlsSettings = true;
virtualHosts = {
- "cache.${domain}" = {
- locations = mkProxy "/" "5000";
- };
-
"miniflux.${domain}" = {
locations = mkProxy "/" "7000";
};
diff --git a/systems/default.nix b/systems/default.nix
index 6f31339..c442d90 100644
--- a/systems/default.nix
+++ b/systems/default.nix
@@ -66,7 +66,6 @@ in {
modules =
[
inputs.teawiebot.nixosModules.default
- inputs.attic.nixosModules.atticd
]
++ server;
};