!9IQChSjwSHXPPWTa:lix.systems

Lix

1142 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-rooms317 Servers

Load older messages


SenderMessageTime
7 Apr 2026
@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
@blokyk:matrix.orgzoë (she/her) for the repl i still do -f <nixpkgs> because the whole legacyPackages.blabla stuff is kinda dumb (thanks to whoever implemented the -f and -E things for all installable lifesaver btw) 17:21:16
@blokyk:matrix.orgzoë (she/her) * for the repl i still do -f <nixpkgs> because the whole legacyPackages.blabla stuff is kinda dumb (thanks to whoever implemented the -f and -E things for all installables btw, lifesaver) 17:21:26
@blokyk:matrix.orgzoë (she/her)lol didn't think about that17:21:40
@blokyk:matrix.orgzoë (she/her) i might extend nix-debug to work for nix shell now that i actually have that setup now that i think about it 17:22:15
@accelbread:matrix.orgaccelbread nix run self starts a transient self-contained version of my emacs setup lol 17:23:05
@accelbread:matrix.orgaccelbreadwait, even if something is in the local registry, you cant use it if you are online or the global registry is not reachable?? Thats cursed17:29:34
@goldstein:tty5.devgoldsteinyou totally can17:29:55
@accelbread:matrix.orgaccelbread* wait, even if something is in the local registry, you cant use it if you are offline or the global registry is not reachable?? Thats cursed17:29:56
@goldstein:tty5.devgoldsteinif it resolves to something that’s available locally17:30:02
@goldstein:tty5.devgoldsteinglobal registry shouldn’t factor there at all17:30:14
@goldstein:tty5.devgoldsteinregistry is basically just rewrite rules: “if you see flakeref that looks like this, replace it with a flakeref that looks like that”17:30:57
@goldstein:tty5.devgoldstein(btw in lix global registry is vendored, so it’s fully offline; cppnix uses cached download)17:31:28
@accelbread:matrix.orgaccelbreadahh i was testing some cppnix stuff it doesnt allow any registry use if global registry is not cached 17:34:32
@llakala:matrix.orgllakala
In reply to @blokyk:matrix.org
for the repl i still do -f <nixpkgs> because the whole legacyPackages.blabla stuff is kinda dumb (thanks to whoever implemented the -f and -E things for all installables btw, lifesaver)
in a lix context you can actually add all sorts of things to your repl with repl-overlays
17:34:34
@llakala:matrix.orgllakalai can immediately embed pkgs, lib, sources, wrappers, etc based on the dir I'm currently in17:34:56
@llakala:matrix.orgllakalarepl-overlays is woefully underutilized for how useful it is17:35:07
@llakala:matrix.orgllakalasee my repl-overlay [here](https://github.com/llakala/nixos/blob/607fcec2bbc14007c2e7736d79d59648ac507193/system/extras/_overlay.nix)17:35:44
@goldstein:tty5.devgoldsteinlmao that’s cursedd17:36:21
@blokyk:matrix.orgzoë (she/her) thanks, i've been curious about repl-overlays but honestly haven't really found a use for them beyond the pkgs = legacyPackages.blabla thing 17:36:43
@llakala:matrix.orgllakalayou have to use a lot of pwd nonsense bc when executing, `./.` is defined as the path of the repl-overlay, not your current path17:37:50
@llakala:matrix.orgllakalabut $PWD solves that (without purity, but who needs purity)17:38:09

Show newer messages


Back to Room ListRoom Version: 10