| 10 Aug 2022 |
Amanda (she/her) | Hum. I just noticed hydra seems to be copying stuff from cache.nixos.org to my local minio s3 bucket, how can I tell it not to bother? | 18:28:51 |
Amanda (she/her) | I just want it to cache stuff that it had to build itself | 18:29:12 |
Amanda (she/her) | Or is that information lost in between the building and the uploading? | 18:30:19 |
@grahamc:nixos.org | Nix maintains an invariant that the entire closure of something must be present in a given cache | 18:32:05 |
Amanda (she/her) | ah | 18:32:14 |
@grahamc:nixos.org | it doesn't really support a partial/overlay cache | 18:32:17 |
Amanda (she/her) | shame, oh well | 18:32:24 |
ajs124 | it does? | 18:32:32 |
ajs124 | but it substitutes from multiple different caches for just fine, for one closure | 18:32:51 |
ajs124 | * but it substitutes from multiple different caches just fine, for one closure | 18:33:02 |
@grahamc:nixos.org | I mean, maybe it does actually do that in reality, but the invariant / expectation is still there | 18:33:27 |
ajs124 | good to know 😬 | 18:33:43 |
Amanda (she/her) | Hum, that may actually prove useful, since my local cache's growing pretty big. 1.1TiB now | 19:02:59 |
Amanda (she/her) | So I can just nuke the directory without worrying about dangling references | 19:03:14 |
Amanda (she/her) | ( I assume ) | 19:03:20 |
Amanda (she/her) | Unless there's another way to prune it, last I heard there's no such tools for that publically | 19:03:50 |
ajs124 | I think I saw one in a gist somewhere, for s3 caches | 19:07:45 |
ajs124 | https://gist.github.com/DarkKirb/533e9e8b9b6dd1badf9b103b4285dc4e | 19:08:06 |
Amanda (she/her) | interesting | 19:09:48 |
ajs124 | I also hacked one up, but it's very dumb and just works on a directory of narinfo and nar files by basically doing LRU.
Doesn't even try to parse any dependencies or anything rn. | 19:10:50 |
| kenji joined the room. | 19:47:30 |