!9IQChSjwSHXPPWTa:lix.systems

Lix

1102 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
25 Nov 2025
@atemu12:matrix.orgAtemubtw. on the topic of flakes: has anyone ever dabbled in re-implementing the flake.nix interface in Nix expressions so that you can eval flakes via plain old regular impure direct eval without all the special bullcrap Nix does to make pure eval work?15:17:39
@piegames:flausch.socialpiegamesDo we have a command to easily check remote builder connections? If not, can I request that as a feature?15:19:23
@piegames:flausch.socialpiegames* Do we have a command to easily check (and debug) remote builder connections? If not, can I request that as a feature?15:19:34
@sofiedotcafe:matrix.orgSofie 🏳️‍⚧️ (she/her)isn't compat basically this but kinda like reversed15:25:59
@atemu12:matrix.orgAtemuflake-compat is quite close to what I want but IIRC it still evals the current project "as a flake" and comes with all the stupidity in doing that like depending on my VCS state or copying shit to the nix store unnecessarily15:28:00
@goldstein:tty5.devgoldsteinI’m doing this basically right now lol15:28:32
@atemu12:matrix.orgAtemubut I'll have to take another look15:28:33
@goldstein:tty5.devgoldsteinI have a program that takes in flakes inputs format, solves them into a flat dependency structure and adds to npins sources.json15:28:58
@goldstein:tty5.devgoldsteinand then generates appropriate dependency injections so flakes don’t know they aren’t actually being used as flakes15:29:16
@atemu12:matrix.orgAtemuOooh; do you have that published somewhere?15:29:42
@goldstein:tty5.devgoldsteinnot yet, I need to add a bit of polish (like CLI parsing), but I expect to publish it this week15:30:13
@goldstein:tty5.devgoldstein also I need to change name generation scheme, because doing npins update unflake_<base64> isn’t really nice lol 15:31:09
@goldstein:tty5.devgoldsteinclipboard.png
Download clipboard.png
15:31:12
@atemu12:matrix.orgAtemu I want it to be direct and acually work with the flake.nix "standard" such that I can throw it at some local flake project and eval it without flake tooling BS but I'd probably need to solve many of the same issues as you likely have 15:31:47
@sofiedotcafe:matrix.orgSofie 🏳️‍⚧️ (she/her)well, the issue is that there's really no "standard"15:32:47
@atemu12:matrix.orgAtemuYeah I know, hence the quotes..15:33:06
@sofiedotcafe:matrix.orgSofie 🏳️‍⚧️ (she/her) you'd have to solve that but if we are doing that, why not just fix the whole standard 15:33:07
@goldstein:tty5.devgoldstein I think the big question here is whether you want to respect transitive dependency lockfiles
I explicitly do not respect them (the problem I’m trying to solve is a billion of nixpkgs in my system closure), so I need to do a bit of extra work to re-solve dependencies
15:33:24
@goldstein:tty5.devgoldsteinif you do, then I think just manually dependency-injecting is not that hard15:33:41
@atemu12:matrix.orgAtemuWhat I mean is the structure of the flake.nix; inputs, outputs and the schema of the outputs15:33:38
@sofiedotcafe:matrix.orgSofie 🏳️‍⚧️ (she/her) * 15:33:39
@goldstein:tty5.devgoldsteinif you do not want to respect them, you’ll probably be able to take my solver and just plug in another “backend”, my design is pretty modular15:34:49
@atemu12:matrix.orgAtemuHonestly for any remote inputs, it can do pure eval or whatever it wants; I just want nix projects on my local filesystem to function sensibly15:35:25
@atemu12:matrix.orgAtemu(Like, what Nix would otherwise do with a flake)15:35:50
@sofiedotcafe:matrix.orgSofie 🏳️‍⚧️ (she/her)Anyways, now that we have a lix committee, times for an proper standard honestly15:36:17
@goldstein:tty5.devgoldstein preach
I did so much reverse engineering for this project
15:36:35
@sofiedotcafe:matrix.orgSofie 🏳️‍⚧️ (she/her) or at least start work on a RFC or something 15:36:38
@atemu12:matrix.orgAtemu @goldstein:tty5.dev: Could I DM you an SSH pubkey for access to the WIP code? 15:37:35
@goldstein:tty5.devgoldstein oh, one more fun fact: flake.nix is semi-implemented in nixlang, see https://git.lix.systems/lix-project/lix/src/commit/27a94369a9a76c7e41220060b85b984e3dc6da4e/lix/libexpr/flake/call-flake.nix 15:38:56
@goldstein:tty5.devgoldsteinI can just DM you the file if you want to, it’s not secret or anything, I just need to polish a bit + write some docs15:39:19

Show newer messages


Back to Room ListRoom Version: 10