grimm-nixos-laptop/modules/nix_cache.nix
2024-05-09 22:32:39 +02:00

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;
};
}