!9IQChSjwSHXPPWTa:lix.systems

Lix

1127 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-rooms312 Servers

Load older messages


SenderMessageTime
31 Mar 2026
@charles:computer.surgeryCharleseither way, this means i would need my program to compute the store path ahead of time, which i don't immediately know how to do00:18:40
@griff79:matrix.orggriffIt is an old and stupid format. but unless you want to talk daemon, probably the easiest.00:18:53
@charles:computer.surgeryCharlesyeah, i would rather use the client programs to avoid being dependent on any particular nix implementation00:19:21
@griff79:matrix.orggriffsnix, nix.rs and harmonia has code for making the store path00:19:42
@charles:computer.surgeryCharles do you happen to know whether nix-store --import buffers everything in memory or can it stream the input 00:20:20
@griff79:matrix.orggriffAll Nix implementations talk more or less the same daemon protocol. It is kind of locked and one of the reasons Lix wants to move to something they control.00:21:07
@griff79:matrix.orggriffI think I recall that it buffers in memory and writes a temp file if there is too much data. But it is several years since I looked at it.00:22:50
@charles:computer.surgeryCharleshmm okay00:24:12
@charles:computer.surgeryCharlesthis seems more or less doable then, thank you00:25:12
@charles:computer.surgeryCharles(the goal is pure eval for non-flakes nix, and this is necessary for filtering what ends up in the store prior to initiating pure eval)00:26:55
@blokyk:matrix.orgzoë (she/her)this might just be me being dumb, but is there any instructions for doing a single-user lix install (specifically, without being root, and specifically with a different prefix than /nix)? or better yet, anyway to do it with the installer? i know the official cppnix one has a single-user mode (though it still puts stuff in /nix), but if there's an easier way than bootstrapping lix through cppnix i'd be all ears08:31:53
@blokyk:matrix.orgzoë (she/her) * 08:37:12
@blokyk:matrix.orgzoë (she/her) * 08:37:21
@srtcd424:auxolotl.orgtc424 (Steve D)Does lix actually support single-user these days? I thought it was pretty deprecated08:45:01
@yuka:yuka.devYureka (she/her)I regularly use lixStatic on systems which don't have a /nix/store08:53:27
@yuka:yuka.devYureka (she/her) simply by setting store = /home/yuka/store in my ~/.config/nix/nix.conf 08:54:02
@yuka:yuka.devYureka (she/her)then I can nix build stuff and it appears in /home/yuka/store/nix/store08:54:13
@yuka:yuka.devYureka (she/her)Redacted or Malformed Event08:54:18
@yuka:yuka.devYureka (she/her)obviously it can't be executed from there08:54:22
@yuka:yuka.devYureka (she/her)but it's still useful for remote builds08:54:30
@yuka:yuka.devYureka (she/her) and when I really want to execute things from there I can use bubblewrap or unshare to do an unprivileged bind-mount of /home/yuka/store/nix to /nix 08:55:06
@raitobezarius:matrix.orgraitobezariusare you on NixOS?13:56:52
@raitobezarius:matrix.orgraitobezariuson non-NixOS, it seems like you could just install Lix using its installer13:56:59
@raitobezarius:matrix.orgraitobezariuson NixOS, you can simply rebuild your NixOS config?13:57:07
@neobrain:matrix.orgneobrainperhaps you already know, but worth mentioning that a custom store location comes with baggage; most notably you'll be unable to use binary caches (... unless you generate them yourself from your custom prefix)14:13:08
@neobrain:matrix.orgneobrain(not sure to what extent it's supported in the first place. I remember a recent-ish talk about it at one of the nix conferences)14:13:44
@lisanna-dettwyler:matrix.orgLisanna you can use a store in a different location and have caching work fine, it's the store prefix (store-dir) that breaks caching if you change it 16:00:42
@lisanna-dettwyler:matrix.orgLisanna * you can use a store in a different location and have caching work fine, it's the store prefix (nix/store) that breaks caching if you change it 16:02:20
@lisanna-dettwyler:matrix.orgLisanna it's a little confusing, but a local --store can be wherever you want on your filesystem and caching will work fine, the ?store= should generally never change from /nix/store (it'll just fully resolve to e.g. /tmp/mystore/nix/store instead) 16:04:24
@neobrain:matrix.orgneobrainohh interesting16:13:55

Show newer messages


Back to Room ListRoom Version: 10