grimm-nixos-laptop/modules/nix_cache.nix

18 lines
272 B
Nix
Raw Normal View History

2024-05-09 22:32:39 +02:00
{
lib,
config,
inputs,
pkgs,
...
}:
let
inherit (config.serverConfig) ports vhosts;
in
{
2024-05-10 10:38:53 +02:00
services.harmonia = {
2024-05-09 22:32:39 +02:00
enable = true;
2024-05-10 10:38:53 +02:00
signKeyPath = "/var/cache-priv-key.pem";
settings.bind = "[::]:${builtins.toString vhosts.nix_cache_host.port}";
2024-05-09 22:32:39 +02:00
};
}