diff options
| author | Mel <mel@rnrd.eu> | 2025-02-14 02:21:53 +0100 |
|---|---|---|
| committer | Mel <mel@rnrd.eu> | 2025-02-14 02:34:02 +0100 |
| commit | 7b2085eecfcbbfca6804b7e9449b603f2699c1ea (patch) | |
| tree | 71be07d0d817a996359419bd34ac154f1c4ef5fa /modules | |
| parent | 839b82dae43324782166b16b624e34a8c7fe4104 (diff) | |
| download | minerals-7b2085eecfcbbfca6804b7e9449b603f2699c1ea.tar.zst minerals-7b2085eecfcbbfca6804b7e9449b603f2699c1ea.zip | |
Revive the bismuth cache!
Signed-off-by: Mel <mel@rnrd.eu>
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/binary-cache.nix | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/modules/binary-cache.nix b/modules/binary-cache.nix new file mode 100644 index 0000000..431532a --- /dev/null +++ b/modules/binary-cache.nix @@ -0,0 +1,23 @@ +# the public key for the current iteration of this cache is: +# bismuth-1:Fkyzfd9gfMUVKq/KfNClHaB2rUiAGtXTzYu96oZteKQ= + +{ unstablePkgs, ... }: + +let + # bismuth's tailnet address + cacheAddress = "100.85.58.31:3000"; +in +{ + services.harmonia = { + enable = true; + # 24.11 does not include built-in zstd compression for harmonia yet. + package = unstablePkgs.harmonia; + # TODO: secrets... + signKeyPaths = [ "/var/bismuth-binary-cache-key.pem" ]; + + settings = { + bind = cacheAddress; + priority = 50; # lower priority than `cache.nixos.org` + }; + }; +} |
