nixcfg/nixosModules/homeLab/binaryCache/default.nix

18 lines
325 B
Nix
Raw Normal View History

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