2024-05-11 22:55:59 +02:00
|
|
|
{ config, ... }:
|
2024-05-09 22:32:39 +02:00
|
|
|
let
|
2024-05-11 22:55:59 +02:00
|
|
|
inherit (config.serverConfig) vhosts;
|
2024-05-09 22:32:39 +02:00
|
|
|
in
|
|
|
|
{
|
2024-05-10 10:38:53 +02:00
|
|
|
services.harmonia = {
|
2024-05-09 22:32:39 +02:00
|
|
|
enable = true;
|
2024-11-27 09:47:58 +01:00
|
|
|
signKeyPaths = [ "/var/cache-priv-key.pem" ];
|
2024-05-10 10:38:53 +02:00
|
|
|
settings.bind = "[::]:${builtins.toString vhosts.nix_cache_host.port}";
|
2024-05-09 22:32:39 +02:00
|
|
|
};
|
|
|
|
}
|