nixos-config/utils/binary-cache.nix
2025-01-17 18:18:36 +01:00

31 lines
664 B
Nix

{
lib,
...
}: {
# ...
nix.settings = {
# allow substituters to be used
substituters = [
# also add mirrors?
# "https://mirrors.ustc.edu.cn/nix-channels/store"
"https://cache.nixos.org"
];
trusted-public-keys = [
# the default public key of cache.nixos.org, it's built-in, no need to add it here
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
];
builders-use-substitutes = true;
extra-substituters = [
"https://anyrun.cachix.org"
];
extra-trusted-public-keys = [
"anyrun.cachix.org-1:pqBobmOjI7nKlsUMV25u9QHa9btJK65/C8vnO3p346s="
];
};
}