!9IQChSjwSHXPPWTa:lix.systems

Lix

1099 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-rooms292 Servers

Load older messages


SenderMessageTime
30 Nov 2025
@raitobezarius:matrix.orgraitobezariusAnd anyone can add a plugin19:59:44
@raitobezarius:matrix.orgraitobezariusWe might enable nix3 CLI to have a workable installable syntax without Flakes but we don't know yet where we will get20:00:16
@raitobezarius:matrix.orgraitobezarius
In reply to @weethet:catgirl.cloud
Nix3 doesn't do that.
We already agree to this and there's a nix4 CLI project
20:01:05
@raitobezarius:matrix.orgraitobezariusThat's not reason enough to bomb nix3 :p20:01:15
@just1602:systemli.orgjust1602I'm wondering if there's gonna be a way for nix4 cli to not be written in C++, so we could use something like clap 😃20:19:43
@raitobezarius:matrix.orgraitobezariusI don't believe it, RPC for CLI is way too far20:24:01
@weethet:catgirl.cloudWeetHetCan't we use FFI instead?20:45:30
@weethet:catgirl.cloudWeetHet We already do for :doc in repl? 20:45:45
@raitobezarius:matrix.orgraitobezariusExceptions and Rust is not going to be funny21:07:29
@raitobezarius:matrix.orgraitobezarius
In reply to @weethet:catgirl.cloud
We already do for :doc in repl?
It's not really FFI, it's cheating
21:35:41
@jlamur:matrix.orgJules LamurHi, does anyone know how to run nixcpp/lix in a podman rootless container (no caps and /proc masked)? I'll try to dig into that but I thought somebody may have had the same usecase already :)21:37:56
@raitobezarius:matrix.orgraitobezariusWith sandbox or without?21:38:37
@hexa:lossy.networkhexapossibly https://github.com/DavHau/nix-portable21:38:38
@jlamur:matrix.orgJules Lamuryeah sorry forgot about the important part: with the sandbox :)21:38:49
@jlamur:matrix.orgJules Lamur(ie. sandbox-fallback = false)21:39:03
@raitobezarius:matrix.orgraitobezariusAFAIK the podman rootless thing has a seccomp policy that prevents all unshare calls with any relevant arg21:39:13
@raitobezarius:matrix.orgraitobezariusIf you get rid of that and you have subuid delegation, you can run with sandbox21:39:30
@raitobezarius:matrix.orgraitobezariusOtherwise hexa gave you the 50% performance penalty solution by using syscall interception21:39:46
@jlamur:matrix.orgJules Lamur yep you're right, running with eg podman run --cap-add=SYS_ADMIN --security-opt unmask=/proc/* --rm -it works 21:39:53
@raitobezarius:matrix.orgraitobezarius
In reply to @jlamur:matrix.org
yep you're right, running with eg podman run --cap-add=SYS_ADMIN --security-opt unmask=/proc/* --rm -it works
I think you can get remove just the unshare blacklist
21:40:13
@raitobezarius:matrix.orgraitobezariusDon't need to unmask proc and cap add21:40:20
@raitobezarius:matrix.orgraitobezariusFor proc, you only need a partial view, not a full view anyway, but you need a proper procfs I suppose21:41:03
@jlamur:matrix.orgJules Lamur AFAIU, podman sets a policy that prevents any mount related syscall in /proc, so remounting a procfs should not work at all without the --security-opt flag above (again, if I understand correctly -- I only have a high level understanding of all that) 21:43:18
@raitobezarius:matrix.orgraitobezariusArgh, yeah, we need *a* procfs21:44:11
@raitobezarius:matrix.orgraitobezariusNot necessarily *the* procfs21:44:16
@jlamur:matrix.orgJules LamurI'm not sure that I understand what you're suggesting here21:44:51
@raitobezarius:matrix.orgraitobezarius
In reply to @jlamur:matrix.org
I'm not sure that I understand what you're suggesting here
--security-opt seccomp reduced-seccomp.json
21:45:29
@raitobezarius:matrix.orgraitobezariusThe JSON file is a fine grained control of which syscall is allowed21:46:23
@raitobezarius:matrix.orgraitobezariusAllowing unshare makes sense if you want the sandbox to work at all21:46:45
@raitobezarius:matrix.orgraitobezariusPerhaps, allowing the mount procfs is sufficiently risk free too21:46:56

Show newer messages


Back to Room ListRoom Version: 10