Lix | 1120 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 | 302 Servers |
| Sender | Message | Time |
|---|---|---|
| 29 Jan 2026 | ||
| oh right, I forgot that's a thing if you use channels | 11:04:41 | |
not necessarily channels (which are pretty terrible), my nixos machines are configured to have the nixpkgs they're built from symlinked at /etc/nixpkgs and a nix.nixPath = [ "nixpkgs=/etc/nixpkgs" ]; | 12:27:23 | |
| I personally go through flake registry and inside registry pin nixpkgs to specific revision but yeah the symlinking approach makes you not reliant on flakes which some may consider desirable | 12:34:05 | |
| Would it be fine to have to "sync" any edits to the source of truth as a separate action from evaluating the sources? The nice thing with flakes is that they can reflect the changes in flakes.nix without you needing to explicitly tell it to do so as the commands are built to handle it, and I'm not sure if not having that ability would make this worth it. | 13:48:34 | |
| TIL | 14:56:55 | |
Am I wrong to assume that using the nix command CLI without flakes is rather niche and kind of an afterthought?Maybe I'm just not used to it, but it seems like you really have to go out of your way (in a non-obvious manner) to use it like that | 14:59:01 | |
| https://piegames.de/dumps/pinning-nixos-with-npins-revisited/ :v | 14:59:50 | |
| it is niche and an afterthought, the installables syntax in the new nix3 CLI is very tied to flakes, even though you could theoretically split them | 15:00:33 | |
| this channel has an over-representation of people that attempt not to use flakes, for various individual reasons | 15:00:58 | |
| (over-representation compared to the average, not in absolute terms :p) | 15:01:19 | |
nix eval --file . attrnix build --file . attrnix repl --file . attrI used to use flakes, I use these commands just about all the time. I never "learned" the "old" ones | 15:03:21 | |
| I was also wondering about this (when you said something to the effect of "flakes have won" the other day) - is there data on this or is it anecdotal? | 15:03:25 | |
| * I was also wondering about this (when you said something to the effect of "flakes have won" the other day) - is there data on how many people use flakes or is it anecdotal? | 15:03:50 | |
| * I was also wondering about this (when you said something to the effect of "flakes have won" the other day) - is there data on how many people use flakes (vs not) or is it anecdotal? | 15:03:56 | |
| detsys has published data about flake.nix presence in new github repos which shows overwhelming usage | 15:04:13 | |
| a lot of mental gymnastics has been done around this because detsys is a biased actor and their methodology isn't perfect | 15:04:41 | |
| I don't doubt it's true though, I'm happy any time i see someone who didn't buy into the flake hypetrain. | 15:06:25 | |
hmm. it's slightly more awkward than nix eval .#attr, but I guess still better than nix-env -lettersoup attr | 15:06:28 | |
| https://discourse.nixos.org/t/a-call-for-the-nix-team-to-present-a-unified-front-on-the-outcome-and-strategy-around-nix-flakes/54959?u=delroth from 1.5 years ago (and there isn't a big reason to think the trend would have changed) | 15:06:42 | |
| (did they really have to use this color scheme? I can barely see flakes-and-legacy here) | 15:08:26 | |
| "legacy" is a good name too 🤣 neobrain you can use flake-compatish to get the benefits of both flakes and non-flakes with minimal effort 😄 | 15:10:41 | |
In reply to @delroth:delroth.netSomething about the name "channel" meaning too many different things … | 15:12:54 | |
| Pragmatically that's nice, though I appreciate having a "standard way" of doing stuff in nix, which flakes seem to be the closest candidate for. Much easier to implement external tooling if everyone isn't using their own bespoke little setup | 15:17:00 | |
| That's the thing with flake-compatish. You can always use flakes, but when you don't want the downsides of flakes you work around them. It can be seen as an "optional addon" rather than a replacement. Being able to quickly override inputs to local paths (or other flakerefs) without molesting the lockfile is pretty convenient, especially if you're a flake user who against all odds decide to contribute to nixpkgs 😄 | 15:20:26 | |
| * That's the thing with flake-compatish. You can always use flakes, but when you don't want the downsides of flakes you work around them. It can be seen as an "optional addon" rather than a replacement. Being able to quickly override inputs to local paths (including self for monorepos) (or other flakerefs) without molesting the lockfile is pretty convenient, especially if you're a flake user who against all odds decide to contribute to nixpkgs 😄 | 15:22:30 | |
| ah yeah I see, makes sense | 15:24:27 | |
In reply to @coca162:matrix.orgwdym by this | 15:42:43 | |
| not fully grasping what you're referring to | 15:42:59 | |
| If I edit a file, the lockfile will not be updated to reflect the changes I have done to the source of truth | 15:43:42 | |
| ah yeah I see | 15:43:52 | |