16 Oct 2025 |
Mic92 | If you don't have gc the second best thing is rotating s3 buckets and have a cdn/load-balancer checking both | 15:19:19 |
manveru | 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 | but it's possible that's only true for references | 15:27:47 |
John Ericson | Robert Hensing (roberth): do you know a command to convert yaml to json? | 15:35:34 |
John Ericson | kinda want the JSON schema to be yaml | 15:35:39 |
John Ericson | for nicer git diffs | 15:35:42 |
Robert Hensing (roberth) | yq I guess? You can call me a freak, but I'm a happy JSON editor | 15:39:54 |
Robert Hensing (roberth) | * John Ericson: yq I guess? You can call me a freak, but I'm a happy JSON editor | 15:40:19 |
Robert 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 |
John Ericson | haha ok that's a funny way to find it | 15:46:10 |
dramforever | yaml2json? | 15:54:18 |
fzakaria | YAML is a superset of JSON. | 15:56:43 |
fzakaria | (always blew my mind) | 15:57:11 |
fzakaria | should we merge https://github.com/NixOS/nix/pull/13673 ?
it's a good test. | 15:58:35 |
manveru | remarshal is nice, but haven't needed it since switching to nushell ^^; | 16:41:38 |
John Ericson | Robert Hensing (roberth): when you did one big file, did you use 1$defs ? | 16:47:36 |
John Ericson | * Robert Hensing (roberth): when you did one big file, did you use $defs ? | 16:47:40 |
Robert Hensing (roberth) | You mean this? https://github.com/nixops4/nixops4/blob/dd10dd638a4a2b7f5912ea89076e719593f230db/rust/nixops4-resource/resource-schema-v0.json#L6 | 17:08:26 |
Robert 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 |
John Ericson | Robert Hensing (roberth): yeah | 17:09:05 |
John Ericson | supposedly that tool supports multiple separate json files with one invocation | 17:09:24 |
John Ericson | have you tried that? | 17:09:26 |
Robert Hensing (roberth) | oh interesting | 17:10:05 |
Robert Hensing (roberth) | I didn't need it | 17:10:30 |
John 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 |
John Ericson | but I don't have high hopes | 17:26:34 |
John Ericson | Robert Hensing (roberth): you had to provide a root , it couldn't just be definitions, for single file version? | 17:26:58 |
fzakaria | 21x speedup for nix nar cat | ls https://github.com/NixOS/nix/pull/14273 | 17:27:13 |
fzakaria | there is so many abstractions in the codebase | 17:28:26 |
fzakaria | hardest part was figuring out which to use :P | 17:28:31 |