!9IQChSjwSHXPPWTa:lix.systems

Lix

1138 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-rooms316 Servers

Load older messages


SenderMessageTime
7 Apr 2026
@blokyk:matrix.orgzoë (she/her) this might be a dumb question, since i don't use flakes much, but: what's the difference between the registry and nix-channel? 17:10:40
@accelbread:matrix.orgaccelbread Repos using my flake lib read their flake.lock to get inputs when not explicity passed, so interesting that there werent more failures due to that 17:12:44
@accelbread:matrix.orgaccelbread
In reply to @blokyk:matrix.org
this might be a dumb question, since i don't use flakes much, but: what's the difference between the registry and nix-channel?
afaik, channels are for syntax, and registries are for flakerefs
17:13:30
@goldstein:tty5.devgoldstein registry is a json file on your system (local registry) and another json file global for everyone (global registry) that is used to resolve flake references like nixpkgs 17:13:44
@goldstein:tty5.devgoldsteini.e. without an explicit url17:13:49
@accelbread:matrix.orgaccelbread* afaik, channels are for `<nixpkgs>` syntax, and registries are for flakerefs17:13:54
@goldstein:tty5.devgoldstein <nixpkgs> is resolved via NIX_PATH, not channels 17:14:07
@accelbread:matrix.orgaccelbreadoh, huh17:14:22
@goldstein:tty5.devgoldsteinchannels is like a pre-flake way to distribute nixpkgs17:14:30
@goldstein:tty5.devgoldsteinI haven’t used them much, I migrated to flakes quickly, and then to unflake lol17:14:44
@blokyk:matrix.orgzoë (she/her)yes sorry i knew that, what i meant is: aren't they both stateful/implicit ways of having dependencies?17:14:55
@goldstein:tty5.devgoldsteinyeah they ae17:15:06
@goldstein:tty5.devgoldstein* yeah they are17:15:10
@goldstein:tty5.devgoldsteinmaybe they failed for another reason earlier, maybe these repos just weren’t in the sample17:15:36
@goldstein:tty5.devgoldsteinmaybe all the inputs were explicitly passed, so this code path was never reached17:15:57
@blokyk:matrix.orgzoë (she/her)ok so what was the point of having the registry as a separate thing? ;-;17:16:18
@blokyk:matrix.orgzoë (she/her)oooh wait is the registry only used at locking time? and not runtime?17:16:31
@goldstein:tty5.devgoldsteinnix channels are just for nixpkgs, registries can hold all sorts of stuff17:16:38
@goldstein:tty5.devgoldsteinthe current global registry holds an unreasonable amount of random repos17:16:55
@goldstein:tty5.devgoldsteinfor a reason I cannot comprehend17:17:02
@goldstein:tty5.devgoldsteinbut you can also use it for local aliases and stuff17:17:12
@accelbread:matrix.orgaccelbreadIve used them for work so a bunch of flakes choose same rev to pin to17:17:15
@goldstein:tty5.devgoldstein yeah, kinda, but you also use them “at runtime” when you write, like, nix shell nixpkgs#hello 17:17:29
@accelbread:matrix.orgaccelbreadyou can override the global registry with a flake setting iirc17:17:46
@blokyk:matrix.orgzoë (she/her)right right17:17:50
@goldstein:tty5.devgoldsteinyeah you can17:17:53
@blokyk:matrix.orgzoë (she/her)ok sorry for the dumb question then ;-;17:18:15
@accelbread:matrix.orgaccelbreadnot a dumb question, situation is a mess lol17:19:12
@blokyk:matrix.orgzoë (she/her) yeah i basically just use the local registry to add nixpkgs for these commands (such that it is the same as the one in my nix path (which is itself based on my system config's npins)), and that's about it 17:20:09
@goldstein:tty5.devgoldstein you can also name it n to save yourself 6 keystrokes lol 17:20:41

Show newer messages


Back to Room ListRoom Version: 10