!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
9 Apr 2026
@emilazy:matrix.orgemily picking the .drv out of temproots is my current best guess 23:13:42
@lisanna-dettwyler:matrix.orgLisanna changed their profile picture.23:14:48
@neil.mayhew:matrix.orgNeil Mayhew OK, that makes sense. There's no point in trying to make cachix use the lix-store library. However, what would happen if I use the current cachix (linked with nix-store) on a system that's using Lix as the nix-daemon? Would that break too? 23:48:58
10 Apr 2026
@kfiz:matrix.sopado.dekfizMaybe, I only just learned that lix-daemon is only compatible with v1.35 of the nix-daemon protocol. If cachix relies on newer features this might break.00:47:26
@neil.mayhew:matrix.orgNeil MayhewThanks, that's helpful and gives me something concrete to check00:48:30
@kfiz:matrix.sopado.dekfizYour welcome. see link to source from an earlier post.00:51:57
@lisanna-dettwyler:matrix.orgLisannaIf you're planning anything in the remote builder space, I'd be very interested to know btw ^^ I've been doing work on improving remote building in cppnix so always interested in seeing what other use cases people have01:33:59
@lisanna-dettwyler:matrix.orgLisannaalso, if y'all would like any help on that effort, I definitely have the time, unless you think it would be harder to split the work01:41:57
@raitobezarius:matrix.orgraitobezarius
In reply to @emilazy:matrix.org
what's the current most least uncursed way of going from a build's PID/UID to the .drv it's building?
What nix-top does: look into /nix/var/nix/builds and then peek at env-vars outPath I'd say
04:25:37
@k900:0upti.meK900 No, it should be fine 05:45:46
@phaer:matrix.orgphaerThere's a third rust implementation of it in harmonia, https://github.com/nix-community/harmonia/blob/main/harmonia-daemon/README.md. 08:23:36
@yuka:yuka.devYureka (she/her)that implements the other side08:27:43
@emilazy:matrix.orgemily

so UID -> owner of build dir -> envs?

that var could be overridden by an evil derivation though right?

10:35:21
@emilazy:matrix.orgemilyit feels a bit less robust than the temproots route to me10:36:08
@raitobezarius:matrix.orgraitobezariuscannot remember right away if an evil derivation can edit outPath, if security against malicious derivations is important, yeah, that's not ideal11:05:43
@emilazy:matrix.orgemilyit's "workload attestation at home"11:11:33
@emilazy:matrix.orgemilyso would at least be nice11:11:52
@emilazy:matrix.orgemilydo you see any problems with the temproots approach? I suppose there's no strict guarantee that the files are named after the nix-daemon PIDs or that they don't have random other derivations in there that can't be reliably distinguished?11:13:02
@raitobezarius:matrix.orgraitobezariusi don't see problems with temproots approach immediately11:14:52
@raitobezarius:matrix.orgraitobezariusfor nix derivations?11:14:56
@raitobezarius:matrix.orgraitobezariusi so want to add the goddamn API in the daemon so you can get workload proofs proper11:15:17
@raitobezarius:matrix.orgraitobezariuswell, there can be temproots for other things appearing11:15:45
@raitobezarius:matrix.orgraitobezariusit's not a 1:1 mapping with derivations being built11:15:50
@emilazy:matrix.orgemilyyeah. ofc a proper story would be great but I'll take what I can get for now11:16:11
@raitobezarius:matrix.orgraitobezariusi think temproots is probably the best11:16:21
@emilazy:matrix.orgemilythe ones for builds are named after the daemon PID11:16:25
@emilazy:matrix.orgemilyso the lookup is easy there11:16:34
@raitobezarius:matrix.orgraitobezariusbut there's multiple subdaemons PIDs11:16:37
@raitobezarius:matrix.orgraitobezariusi would also go for the dangerous scenario for a PoC11:16:40
@raitobezarius:matrix.orgraitobezariusfor a intermediate production level target, i'd do a proxy nix daemon real quick11:16:49

Show newer messages


Back to Room ListRoom Version: 10