19 lines
387 B
Nix
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=";
|
|
};
|
|
};
|
|
}
|