!VRULIdgoKmKPzJZzjj:nixos.org

Nix Hackers

887 Members
For people hacking on the Nix package manager itself189 Servers

Load older messages


SenderMessageTime
16 Oct 2025
@joerg:thalheim.ioMic92We also should just move to zstd for ls files. It is much faster in my benchmarks compared to brotli. Nix already supports zstd on download for a long time. 14:54:10
@manveru:matrix.orgmanveru @Mic92 that looks really nice, we just had an incident where someone turned on object expiration on our bucket to save space... The fallout of narinfos pointing to nothing and Nix crashing because of it took weeks to clean up 15:13:17
@manveru:matrix.orgmanveruBut does this prevent crashes because of locally cached narinfos that point to removed NARs?15:15:41
@joerg:thalheim.ioMic92
In reply to @manveru:matrix.org
But does this prevent crashes because of locally cached narinfos that point to removed NARs?
I think missing nars for a given narinfo should only produce a warning? At least my experience from with harmonia. Broken references however might be a problem. However niks3 shouldn't let this happen.
15:18:00
@joerg:thalheim.ioMic92If you don't have gc the second best thing is rotating s3 buckets and have a cdn/load-balancer checking both15:19:19
@manveru:matrix.orgmanveru i'm not 100% certain anymore, but afaict if the NAR goes missing within the narinfo-cache-positive-ttl while there's an entry in the e.g. ~/.cache/nix/binary-cache-v7.sqlite Nix may take it personally 15:26:50
@manveru:matrix.orgmanverubut it's possible that's only true for references15:27:47
@Ericson2314:matrix.orgJohn Ericson Robert Hensing (roberth): do you know a command to convert yaml to json? 15:35:34
@Ericson2314:matrix.orgJohn Ericsonkinda want the JSON schema to be yaml 15:35:39
@Ericson2314:matrix.orgJohn Ericsonfor nicer git diffs15:35:42
@roberthensing:matrix.orgRobert Hensing (roberth) yq I guess? You can call me a freak, but I'm a happy JSON editor 15:39:54
@roberthensing:matrix.orgRobert Hensing (roberth) * John Ericson: yq I guess? You can call me a freak, but I'm a happy JSON editor 15:40:19
@roberthensing:matrix.orgRobert Hensing (roberth)

oof

$ nix-store -qR $(nix-instantiate -A nix) | cut -c 45- | grep -iE 'yq|yaml'
YAML-Tiny-1.74.tar.gz.drv
perl5.40.0-YAML-Tiny-1.74.drv
15:43:23
@Ericson2314:matrix.orgJohn Ericsonhaha ok that's a funny way to find it15:46:10
@dramforever:matrix.orgdramforeveryaml2json?15:54:18
@fzakaria:one.ems.hostfzakariaYAML is a superset of JSON.15:56:43
@fzakaria:one.ems.hostfzakaria(always blew my mind)15:57:11
@fzakaria:one.ems.hostfzakariashould we merge https://github.com/NixOS/nix/pull/13673 ? it's a good test.15:58:35
@manveru:matrix.orgmanveru remarshal is nice, but haven't needed it since switching to nushell ^^; 16:41:38
@Ericson2314:matrix.orgJohn Ericson Robert Hensing (roberth): when you did one big file, did you use 1$defs? 16:47:36
@Ericson2314:matrix.orgJohn Ericson * Robert Hensing (roberth): when you did one big file, did you use $defs? 16:47:40
@roberthensing:matrix.orgRobert Hensing (roberth) You mean this? https://github.com/nixops4/nixops4/blob/dd10dd638a4a2b7f5912ea89076e719593f230db/rust/nixops4-resource/resource-schema-v0.json#L617:08:26
@roberthensing:matrix.orgRobert Hensing (roberth) * John Ericson: You mean this? https://github.com/nixops4/nixops4/blob/dd10dd638a4a2b7f5912ea89076e719593f230db/rust/nixops4-resource/resource-schema-v0.json#L6 17:08:34
@Ericson2314:matrix.orgJohn Ericson Robert Hensing (roberth): yeah 17:09:05
@Ericson2314:matrix.orgJohn Ericsonsupposedly that tool supports multiple separate json files with one invocation17:09:24
@Ericson2314:matrix.orgJohn Ericsonhave you tried that?17:09:26
@roberthensing:matrix.orgRobert Hensing (roberth)oh interesting17:10:05
@roberthensing:matrix.orgRobert Hensing (roberth)I didn't need it17:10:30
@Ericson2314:matrix.orgJohn Ericson Sergei Zimmerman (xokdvium): btw (just so you see it here) I am trying to see if this tool can do cross-file references for json schema now 17:26:30
@Ericson2314:matrix.orgJohn Ericsonbut I don't have high hopes17:26:34

Show newer messages


Back to Room ListRoom Version: 6