Lix | 1123 Members | |
| Lix user channel. Feel free to discuss on-topic issues here and give each other help. For matrix.to links to the rest of the Lix channels, see: https://wiki.lix.systems/books/lix-organisation/page/matrix-rooms | 305 Servers |
| Sender | Message | Time |
|---|---|---|
| 1 Feb 2026 | ||
In reply to @antifuchs:asf.computer* grep -rnFe determinateNix /nix/store/-source/**.nix` might work better | 19:41:04 | |
| yeah, I probably could do something smarter with find/xargs there | 19:41:30 | |
find /nix/store -type f -name \*.nix -print0 | xargs -0 grep -l determinateNix so I don't run into argv limits | 19:42:20 | |
Or **/*.nix as the grep arg should work | 19:43:39 | |
rg -t nix determinateNix ez | 19:45:02 | |
In reply to @vczf:matrix.orgNot in my shell, no. But anyways I’m off to walk the dog, should be done by then | 19:47:26 | |
| (Also I don’t trust rg’s file selection mechanisms at all, unless I’m in a git repo. Been burned too many times by that) | 19:47:57 | |
| Oh lol ripgrep is almost 10 years old and I still haven’t gotten around to trying it | 19:48:27 | |
| the automatic exclusions? | 19:48:35 | |
| Start today! | 19:48:41 | |
yeah, rg -uuu is the way to specify "search absolutely everything" | 19:49:14 | |
| I felt like I could trust it once, then the cli changed and I haven’t trusted it since. Maybe in 10 years I will use that again, but for now? Nah | 20:18:59 | |
| It’s great in git repos tho! | 20:19:44 | |
| rip grep all 😭 | 20:24:33 | |
| 20:36:21 | ||
| Main thing ripgrep messes up on in my experience is with .gitignore because it uses a parser that is not very good | 22:57:43 | |
| 2 Feb 2026 | ||
update, it's virby, a linux-in-a-rosetta-vm builder for darwin. oh well. | 01:34:24 | |
| 07:27:17 | ||
| Is there any explanation for what
Now some of this is intentional, some of this is accidental, and some of this is a bug (I'm 92% convinced that calling | 11:39:55 | |
(is the answer "The nix CLI is as much of a mess as flakes are, and without flakes you should be using the old CLI"? I like the nix CLI, even without flakes, and so far I've avoided learning the old incantations, I hope to continue using nix, but I'll accept "this CLI is irreparable mess, don't expect any better" as an answer) | 11:42:32 | |
| Autocalling was a mistake | 11:48:17 | |
In reply to @psentee:matrix.orgIt is an irreparable mess, however this specific mess is one that got inherited almost 1:1 form the old CLI | 11:52:12 | |
Huh. Functors aside, is there any situation where a «lambda …» from nix eval/nix build/nix run would be useful? Trying to call it seems like a good attempt to arrive at something useful. Especially when there are explicit --arg / --argstr switches (I'd say if these switches are set it's no longer "auto"calling, it's requested by user) | 11:52:22 | |
| Notably, autocalling only works for functions with an attrset destructuring | 11:52:39 | |
In reply to @psentee:matrix.orgYes, fpr denugging purposes | 11:53:16 | |
In reply to @piegames:flausch.socialIn argument position | 11:53:59 | |
IMO a reasonable consistent behaviour would be "if --file/--expr is a function, always call" (if function won't take the args we have, then it's an error). For debugging purposes, one switch could disable that. (Or the reverse: an explicit --arg/--argstr would enable calling – now it doesn't seem to change the behaviour at all, it's just a NOP half the time) | 11:56:30 | |
I do have a use case for calling with --arg: I want to pass the currently running system to my machinery without having to write nix eval --expr "import $PATH { … }" instead of nix eval --argstr … … -f "$PATH"` (composing nix expression as a string is an escaping hell I'd prefer to avoid) | 12:00:05 | |
Honest question: is the old style nix-* CLI better behaved / more consistent than nix? Should I abandon nix together with flakes? The nix CLI seems to at least attempt consistency (installables, build/eval/run being symmetrical and repl quite close to them) | 12:02:22 | |
| No | 12:05:46 | |