nixcfg/nixosModules/homeLab/binaryCache/default.nix

14 lines
296 B
Nix
Raw Normal View History

{ pkgs, lib, config, ... }: {
options = {
2024-03-28 16:40:23 -04:00
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";
};
};
2024-03-28 16:40:23 -04:00
}