summaryrefslogtreecommitdiff
path: root/systems
diff options
context:
space:
mode:
Diffstat (limited to 'systems')
-rw-r--r--systems/atlas/attic.nix33
-rw-r--r--systems/atlas/default.nix1
-rw-r--r--systems/atlas/nginx.nix6
-rw-r--r--systems/default.nix1
4 files changed, 0 insertions, 41 deletions
diff --git a/systems/atlas/attic.nix b/systems/atlas/attic.nix
deleted file mode 100644
index a810eb5..0000000
--- a/systems/atlas/attic.nix
+++ /dev/null
@@ -1,33 +0,0 @@
-{
- config,
- inputs',
- secretsDir,
- ...
-}: {
- age.secrets.atticCreds.file = secretsDir + "/atticCreds.age";
-
- environment.systemPackages = [inputs'.attic.packages.default];
-
- services.atticd = {
- enable = true;
-
- credentialsFile = config.age.secrets.atticCreds.path;
-
- settings = {
- listen = "[::]:5000";
-
- api-endpoint = "https://cache.${config.networking.domain}/";
-
- chunking = let
- kb = 1024;
- in {
- nar-size-threshold = 64 * kb;
- min-size = 16 * kb;
- avg-size = 64 * kb;
- max-size = 256 * kb;
- };
-
- compression.type = "zstd";
- };
- };
-}
diff --git a/systems/atlas/default.nix b/systems/atlas/default.nix
index e527af9..2a8346f 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 fbf081a..03a6fc1 100644
--- a/systems/atlas/nginx.nix
+++ b/systems/atlas/nginx.nix
@@ -19,18 +19,12 @@ in {
services.nginx = {
enable = true;
- clientMaxBodySize = "1250m";
-
recommendedGzipSettings = true;
recommendedOptimisation = true;
recommendedProxySettings = true;
recommendedTlsSettings = true;
virtualHosts = toVHosts {
- cache = {
- locations = mkProxy "/" "5000";
- };
-
miniflux = {
locations = mkProxy "/" "7000";
};
diff --git a/systems/default.nix b/systems/default.nix
index 2c7eec4..6ee78ad 100644
--- a/systems/default.nix
+++ b/systems/default.nix
@@ -68,7 +68,6 @@ in {
modules = with inputs;
[
teawiebot.nixosModules.default
- attic.nixosModules.atticd
]
++ server;
};