| 24 Nov 2025 |
Linux Hackerman | is it intentional that there's no tag in https://git.lix.systems/lix-project/nixos-module for 2.94.0? | 12:06:13 |
niklaskorz | I think the module isn't meant to be used with stable versions anymore | 13:29:05 |
niklaskorz | as mentioned on https://lix.systems/add-to-config/
Using the Lix NixOS module (only recommended for bleeding edge builds)
| 13:30:05 |
goldstein | I found out that this actually isn’t enough
e.g. in builtins.fetchTree (builtins.parseFlakeRef "git+https://example.org/repo?dir=foo";) parseFlakeRef will include dir as an attr in a resolved flake ref, which fetchTree can’t deal with:
error: unsupported input attribute 'dir' for the 'git' scheme
| 19:17:26 |
goldstein | I can mention it in the issue ig, although I’m not sure that’s the same issue | 19:17:41 |
goldstein | cppnix has the same behaviour here | 19:18:06 |
goldstein | so you need a “sanitize” step in between that removes dir and maybe narHash | 19:18:55 |
goldstein | * so you need a “sanitize” step in between that removes dir ~and maybe narHash~ | 19:20:59 |
goldstein | * so you need a “sanitize” step in between that removes dir ~and maybe narHash~ | 19:21:05 |
goldstein | * so you need a “sanitize” step in between that removes dir <s>and maybe narHash</s> | 19:21:14 |
goldstein | * so you need a “sanitize” step in between that removes dir and maybe narHash | 19:21:35 |
goldstein | aside: is there a good source of truth for what are the allowed attributes in a flakeref? nix.dev certainly misses some, and I’m not sure if it’s intentional (i.e. some attrs are internal-only) or just a docs bug | 19:26:58 |
helle (just a stray cat girl) | so erm | 19:41:17 |
helle (just a stray cat girl) | that is a tad cursed | 19:41:20 |
helle (just a stray cat girl) | the docs for it | 19:41:22 |
helle (just a stray cat girl) | https://docs.lix.systems/manual/lix/2.94/language/builtins.html#builtins-fetchTree | 19:41:46 |
helle (just a stray cat girl) | uh, yeah, mention how incomplete they are | 19:41:54 |
helle (just a stray cat girl) | * uh, yeah, mentions how incomplete they are | 19:43:33 |
helle (just a stray cat girl) | this technically is it's own bug independent of all the other doc bugs and should probably exist | 19:43:50 |
goldstein | thanks for the link anyway! | 19:43:51 |
goldstein | I think these docs are similar to nix.dev ones | 19:44:00 |
helle (just a stray cat girl) | that part is still the same, not really been touched | 19:44:12 |
goldstein | e.g. they miss allRefs attr in git fetcher | 19:44:19 |
goldstein | not sure if intentional | 19:44:22 |
helle (just a stray cat girl) | there are a bunch of misses | 19:44:28 |
helle (just a stray cat girl) | I am planning on holding the source to all the builtins, fetchurl was what tripped me, it takes a structured attributes, but doesn't mention that at all there | 19:45:18 |
helle (just a stray cat girl) | also there is a need for a more formal syntax spec | 19:45:28 |
helle (just a stray cat girl) | https://git.lix.systems/lix-project/lix/issues/1048 | 19:45:58 |
goldstein | I would offer to document this part, but unfortunately I don’t understand half the attrs there :(
maybe if I start to understand them after reading this code more for my current project lol | 19:46:05 |
helle (just a stray cat girl) | but fetchTree is it's own cursed bit | 19:46:11 |