18 lines
238 B
Nix
18 lines
238 B
Nix
|
{
|
||
|
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;
|
||
|
};
|
||
|
}
|