fix harmonia config

This commit is contained in:
Jörg Thalheim 2023-07-05 17:38:01 +02:00
parent ba3af50dd5
commit 6f82a31db9
3 changed files with 13 additions and 7 deletions

View File

@ -12,6 +12,7 @@
web01.imports = [
self.nixosModules.server
inputs.srvos.nixosModules.mixins-nginx
./web01
];
};

View File

@ -1,11 +1,16 @@
{ config, ... }: {
{ config, pkgs, ... }: {
services.harmonia.enable = true;
# $ nix-store --generate-binary-cache-key cache.yourdomain.tld-1 harmonia.secret harmonia.pub
services.harmonia.signKeyPath = config.sops.secrets.harmonia-key.path;
sops.secrets.harmonia-key = { };
services.nginx = {
package = pkgs.nginxStable.override {
modules = [ pkgs.nginxModules.zstd ];
};
};
services.nginx.virtualHosts."cache.clan.lol" = {
useACMEHost = "thalheim.io";
forceSSL = true;
enableACME = true;
locations."/".extraConfig = ''

File diff suppressed because one or more lines are too long