tvl-depot/users/wpcarro/nixos/modules/hadrian-cache.nix
William Carroll 9166a9915a feat(wpcarro/nixos): Support kyoko
Yet Another NixOS System

Change-Id: I29590c5e7c2a651f3ef56642018649dddd9f06b6
Reviewed-on: https://cl.tvl.fyi/c/depot/+/7297
Reviewed-by: wpcarro <wpcarro@gmail.com>
Tested-by: BuildkiteCI
Reviewed-by: tazjin <tazjin@tvl.su>
Autosubmit: wpcarro <wpcarro@gmail.com>
2022-12-12 18:46:16 +00:00

17 lines
422 B
Nix

# If enabled, use Hadrian's Nix cache.
{ config, lib, pkgs, ... }:
{
options = {
hadrian.cache.enable = lib.mkEnableOption "Hadrian's binary cache";
};
config = lib.mkIf config.hadrian.cache.enable {
nix.settings.trusted-public-keys = [
"cache.hadrian.internal:XWdYSn5ZASj6IqZd4nnDBXJmahQEolBrtq9DvSe0UT0="
];
nix.settings.substituters = [
"http://cache.hadrian.internal"
];
};
}