nixcfg/nixosModules/services/binaryCache/default.nix

18 lines
333 B
Nix
Raw Normal View History

2024-04-07 22:16:33 -04:00
{
pkgs,
lib,
config,
...
}: {
options = {
alyraffauf.services.binaryCache.enable = lib.mkEnableOption "Enable nixpkgs cache server.";
};
config = lib.mkIf config.alyraffauf.services.binaryCache.enable {
services.nix-serve = {
enable = true;
secretKeyFile = "/var/cache-priv-key.pem";
};
};
2024-03-28 16:40:23 -04:00
}