nixcfg/nixosModules/homeLab/binaryCache/default.nix
2024-04-07 22:16:33 -04:00

18 lines
303 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";
};
};
}