nixcfg/modules/nixos/cache/public/default.nix
2024-01-11 10:31:04 +00:00

19 lines
387 B
Nix

{ config, lib, ... }:
with lib;
with lib.plusultra;
let
cfg = config.plusultra.cache.public;
in
{
options.plusultra.cache.public = {
enable = mkEnableOption "Plus Ultra public cache";
};
config = mkIf cfg.enable {
plusultra.nix.extra-substituters = {
"https://attic.ruby.hamho.me/public".key = "public:QUkZTErD8fx9HQ64kuuEUZHO9tXNzws7chV8qy/KLUk=";
};
};
}