mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-22 17:43:55 -05:00
14 lines
302 B
Nix
14 lines
302 B
Nix
{ pkgs, lib, config, ... }: {
|
|
|
|
options = {
|
|
homeLab.binaryCache.enable =
|
|
lib.mkEnableOption "Enables nixpkgs cache.";
|
|
};
|
|
|
|
config = lib.mkIf config.homeLab.binaryCache.enable {
|
|
services.nix-serve = {
|
|
enable = true;
|
|
secretKeyFile = "/var/cache-priv-key.pem";
|
|
};
|
|
};
|
|
} |