mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-26 19:51:54 -05:00
18 lines
333 B
Nix
18 lines
333 B
Nix
{
|
|
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";
|
|
};
|
|
};
|
|
}
|