{ lib, config, inputs, pkgs, ... }: let inherit (config.serverConfig) ports vhosts; in { services.nix-serve = { enable = true; secretKeyFile = "/var/cache-priv-key.pem"; port = vhosts.nix_cache_host.port; }; }