!9IQChSjwSHXPPWTa:lix.systems

Lix

1104 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-rooms295 Servers

Load older messages


SenderMessageTime
13 May 2024
@qyriad:katesiria.orgQyriad technically a binary cache can take multiple forms; at least one of them should be built in to Nix 19:16:43
@raitobezarius:matrix.orgraitobezarius(generally, I'd like to see the concept of cache combinators)19:16:44
@samrose:matrix.orgsamroseIf there is anything people can do to help that are not part of the core team, please let us know. 19:19:50
@raitobezarius:matrix.orgraitobezarius

to expand on my thoughts, indeed, binary cache means so many things, I think what would be interesting is:

  • nix has interesting and strong store backends: filesystem, S3, etc.

  • each one of them can be exposed on a reasonable protocol (HTTP/3, etc. whatever) using nix itself

  • nix can handle certain operations by itself which are reasonable: signing store paths (via PKCS#11 or local signing stuff), etc.

  • deduplication should be fundamental & baked-in

  • multi-tenancy should ideally be just multiple nix stores (maybe they can share blocks or something whatever)

  • you can bring your own reverse proxy for auth, authnz based on your "usecase" logic

  • etc.

19:20:41
@raitobezarius:matrix.orgraitobezarius obviously, you can run a S3 binary cache without nix being around 19:21:04
@raitobezarius:matrix.orgraitobezarius
In reply to @samrose:matrix.org
If there is anything people can do to help that are not part of the core team, please let us know.
I recommend looking at https://git.lix.systems/lix-project/lix/issues?q=&type=all&state=open&labels=154&milestone=0&assignee=0&poster=0
19:21:28
@qyriad:katesiria.orgQyriad
In reply to @samrose:matrix.org
If there is anything people can do to help that are not part of the core team, please let us know.
anyone is welcome to contribute! we have a meeting being planned to work out proper governance structure Soon™️ so the "core team" at least as it is right now is largely an interim construct. identifying issues, writing docs or editing the wiki, or code contributions themselves are all very very welcome. on the flip side please let us know if there's anything we can do to help onboard!
19:22:26
@raitobezarius:matrix.orgraitobezarius
In reply to @raitobezarius:matrix.org

to expand on my thoughts, indeed, binary cache means so many things, I think what would be interesting is:

  • nix has interesting and strong store backends: filesystem, S3, etc.

  • each one of them can be exposed on a reasonable protocol (HTTP/3, etc. whatever) using nix itself

  • nix can handle certain operations by itself which are reasonable: signing store paths (via PKCS#11 or local signing stuff), etc.

  • deduplication should be fundamental & baked-in

  • multi-tenancy should ideally be just multiple nix stores (maybe they can share blocks or something whatever)

  • you can bring your own reverse proxy for auth, authnz based on your "usecase" logic

  • etc.

(and maybe let me add that i'd like it to be easy to make super-stores by composing a list of stores with any URI format)
19:22:28
@aria.rip:matrix.orgaria (she/it) changed their display name from aria to aria (she/it).19:38:17
@jkachmar:matrix.orgjkachmar
In reply to @raitobezarius:matrix.org
i think the binary cache impl should be more or less very sibling to the nix impl

this is sort of what the tvix approach is, right?

the store should be a defined component with its own semantics and a clear interface, at which point a lot of other stuff can be implemented on top of this rather than through the current monolithic Nix binary application (e.g. binary caching, the build tool, various bits of UI on top of the store)

19:42:33
@raitobezarius:matrix.orgraitobezariuscorrect19:57:44
@dantefromhell:matrix.orgdantefromhell joined the room.20:01:59
@tc424:glasgow.social@tc424:glasgow.socialOh https://github.com/brianmcgee/nvix20:18:40
@tc424:glasgow.social@tc424:glasgow.social
In reply to @tc424:glasgow.social
Oh https://github.com/brianmcgee/nvix
Linked from https://bmcgee.ie/posts/2023/10/nvix-implementing-a-tvix-store-with-nats/
20:20:49
@mangoiv.:matrix.orgMangoIV
In reply to @delroth:delroth.net
the flakes implementation in Lix is arguably more stable than Nix, who broke several user-facing APIs completely through bugs in the past 2-3 versions
That’s partially why I was asking, but no answer is good enough as an answer for me now then. I’ll keep watching :)
20:53:03
@fomosapien:matrix.orgTriskelion changed their display name from Triskelion to Triskelion (AFK).21:26:26
@samrose:matrix.orgsamrose
In reply to @tc424:glasgow.social
Linked from https://bmcgee.ie/posts/2023/10/nvix-implementing-a-tvix-store-with-nats/
This looks pretty amazing ...
21:30:20
@quentinmit:matrix.orgquentin joined the room.21:56:14
@easrng:yuri.imeasrng joined the room.22:38:44
@easrng:yuri.imeasrng i just rebuilt with nix.package = pkgs.lix now that it's in nixpkgs and everything seems to work, is there any reason not to do this? 22:43:16
@puck:puck.moepuckThe version of Lix in nixpkgs will likely lag behind by a bit; and the dedicated overlay/module will build other packages that depend on Nix with Lix as well; which doesn't happen in nixpkgs.22:45:37
@easrng:yuri.imeasrng changed their profile picture.22:46:02
@mjm:midna.devmjm
In reply to @easrng:yuri.im
i just rebuilt with nix.package = pkgs.lix now that it's in nixpkgs and everything seems to work, is there any reason not to do this?
this is what i'm doing too
22:46:34
@samrose:matrix.orgsamrose
In reply to @puck:puck.moe
The version of Lix in nixpkgs will likely lag behind by a bit; and the dedicated overlay/module will build other packages that depend on Nix with Lix as well; which doesn't happen in nixpkgs.
If we nix build on the flake in the source repo this overlay/module and the packages it builds will be part of the build then, is that right?
23:08:40
@fly:asra.gr@fly:asra.gr
In reply to @puck:puck.moe
The version of Lix in nixpkgs will likely lag behind by a bit; and the dedicated overlay/module will build other packages that depend on Nix with Lix as well; which doesn't happen in nixpkgs.
mew, did you figure out why it builds electron with our nixpkgs version?
23:09:33
@qyriad:katesiria.orgQyriad ugh this is that issue where they somehow got Nix in Electron's closure. did they not backport the fix for that to older Nixpkgs? 23:10:15
@qyriad:katesiria.orgQyriad
In reply to @samrose:matrix.org
If we nix build on the flake in the source repo this overlay/module and the packages it builds will be part of the build then, is that right?
I'm not sure I understand you correctly, but I don't think so — the flake in the lix-project/lix repo is not actually exactly the same derivation as the one the overlay exports
23:11:13
@samrose:matrix.orgsamrose
In reply to @samrose:matrix.org
If we nix build on the flake in the source repo this overlay/module and the packages it builds will be part of the build then, is that right?
I guess we can also use the installer on a fresh machine. I hadn’t even dug into trying to install Nixos using Lix or maybe not yet possible?
23:11:52
@samrose:matrix.orgsamrose
In reply to @qyriad:katesiria.org
I'm not sure I understand you correctly, but I don't think so — the flake in the lix-project/lix repo is not actually exactly the same derivation as the one the overlay exports
Ok thanks
23:12:43
@qyriad:katesiria.orgQyriad
In reply to @samrose:matrix.org
I guess we can also use the installer on a fresh machine. I hadn’t even dug into trying to install Nixos using Lix or maybe not yet possible?
the NixOS installer doesn't have like, an option to select Lix instead (yet 🙂), but you could probably hack the installer to use a specific overlay or something. or you could just switch after installation 🤷she
23:13:40

Show newer messages


Back to Room ListRoom Version: 10