nixos-servers/services/nix-cache/nix-serve.nix

13 lines
285 B
Nix
Raw Permalink Normal View History

2025-01-24 14:48:03 +00:00
{ pkgs, config, ... }:
{
sops.secrets."cache-secret" = {
sopsFile = ../../secrets/nix-cache01/cache-secret;
format = "binary";
};
services.nix-serve = {
enable = true;
package = pkgs.nix-serve-ng;
secretKeyFile = config.sops.secrets.cache-secret.path;
};
}