nixfiles/system/cachix.nix
2024-03-01 19:55:13 -05:00

26 lines
645 B
Nix

{ pkgs, lib, config, ... }:
let
cfg = config.nixfiles.cachix;
in
{
options.nixfiles.cachix.enable = lib.mkOption {
description = "Whether to enable the Cachix derivation cache";
type = lib.types.bool;
default = true;
example = false;
};
config = lib.mkIf cfg.enable {
nix.settings = {
substituters = [
"https://hyprland.cachix.org"
"https://cuda-maintainers.cachix.org"
];
trusted-public-keys = [
"hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc="
"cuda-maintainers.cachix.org-1:0dq3bujKpuEPMCX6U4WylrUDZ9JyUG0VpVZa7CNfq5E="
];
};
};
}