!9IQChSjwSHXPPWTa:lix.systems

Lix

1145 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-rooms318 Servers

Load older messages


SenderMessageTime
10 Apr 2026
@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
@raitobezarius:matrix.orgraitobezariusand intercept what is being built11:16:56
@emilazy:matrix.orgemilyin this setting you have peer credentials from the build11:17:01
@raitobezarius:matrix.orgraitobezariusit would be great to have a generic toolkit to do that11:17:05
@raitobezarius:matrix.orgraitobezariusyes11:17:10
@emilazy:matrix.orgemilyso can walk up to the daemon proc to get its PID, look that up, (and then make sure the PID/socket still lives to avoid TOCTOU I guess)11:17:56
@raitobezarius:matrix.orgraitobezariusah btw, if you have cgroups11:18:04
@raitobezarius:matrix.orgraitobezariusyou can do nice things11:18:06
@raitobezarius:matrix.orgraitobezariusjust list all the cgroups11:18:08
@raitobezarius:matrix.orgraitobezariusthey contain the drvHash in their names11:18:12
@raitobezarius:matrix.orgraitobezariusby that, I mean: https://gerrit.lix.systems/c/lix/+/477311:19:12
@emilazy:matrix.orgemilyright. that is nice but not sure I can assume it. (can builds make child cgroups? I guesS you need to check hierarchy if so?)11:20:49
@emilazy:matrix.orgemily * 11:20:56
@emilazy:matrix.orgemilyalso can you actually query the daemon for a hash w/o drv name or do you need to walk the store? 🤔11:21:28
@raitobezarius:matrix.orgraitobezariusbuild can make child cgroups11:36:49
@raitobezarius:matrix.orgraitobezariusyou can probably directly query the sqlite database i think :D11:37:07
@raitobezarius:matrix.orgraitobezariusyou can prevent that manually if you listen on cgroup appearances11:37:25
@raitobezarius:matrix.orgraitobezariusand write in subtree_control11:37:31

Show newer messages


Back to Room ListRoom Version: 10