feat: caching

This commit is contained in:
2026-06-05 13:09:18 +00:00
parent 341e3a0e1c
commit 35a5d59cbe
3 changed files with 15 additions and 17 deletions
+11
View File
@@ -1,5 +1,16 @@
{ {
description = "yukkop's nix utilities"; description = "yukkop's nix utilities";
nixConfig = {
extra-substituters = [
"https://cache.nixos.org"
"https://cache.hectic-lab.com/hectic"
];
extra-trusted-public-keys = [
"hectic:KMQsKow4SoA9K2vOJlOljmx7/Zpf91Yy+5qEtxDDCzA="
];
};
inputs = { inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.11"; nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.11";
nixpkgs-fixed.url = "github:NixOS/nixpkgs/nixos-25.11"; nixpkgs-fixed.url = "github:NixOS/nixpkgs/nixos-25.11";
+4 -1
View File
@@ -18,7 +18,10 @@
services.nginx.virtualHosts."cache.${domain}" = { services.nginx.virtualHosts."cache.${domain}" = {
enableACME = true; enableACME = true;
forceSSL = true; forceSSL = true;
extraConfig = ''
client_max_body_size 0;
'';
locations."/" = { locations."/" = {
proxyPass = "http://127.0.0.1:8080"; proxyPass = "http://127.0.0.1:8080";
}; };
-16
View File
@@ -37,10 +37,6 @@ let
hashedPasswordFile = config.sops.secrets."mailserver/${name}/hashedPassword".path; hashedPasswordFile = config.sops.secrets."mailserver/${name}/hashedPassword".path;
}; };
}; };
sslOpts = {
sslCertificate = config.sops.secrets."ssl/porkbun/${domain}/domain.cert.pem".path;
sslCertificateKey = config.sops.secrets."ssl/porkbun/${domain}/private.key.pem".path;
};
in { in {
imports = [ imports = [
self.nixosModules.hectic self.nixosModules.hectic
@@ -118,18 +114,6 @@ in {
key = "init-postgresql"; key = "init-postgresql";
}; };
"atticd/environment" = {}; "atticd/environment" = {};
"ssl/porkbun/${domain}/domain.cert.pem" = {
group = "nginx";
mode = "0440";
};
"ssl/porkbun/${domain}/private.key.pem" = {
group = "nginx";
mode = "0440";
};
"ssl/porkbun/${domain}/public.key.pem" = {
group = "nginx";
mode = "0440";
};
"wg-bfs/private-key" = {}; "wg-bfs/private-key" = {};
}; };
}; };