grimm-nixos-laptop/modules/nix_cache.nix
2024-05-10 10:38:53 +02:00

18 lines
272 B
Nix

{
lib,
config,
inputs,
pkgs,
...
}:
let
inherit (config.serverConfig) ports vhosts;
in
{
services.harmonia = {
enable = true;
signKeyPath = "/var/cache-priv-key.pem";
settings.bind = "[::]:${builtins.toString vhosts.nix_cache_host.port}";
};
}