!9IQChSjwSHXPPWTa:lix.systems

Lix

1123 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-rooms304 Servers

Load older messages


SenderMessageTime
24 Jan 2026
@neindochoh:catgirl.cloudneindochoh! / Seti (they/them) * 09:48:05
@acidbong:envs.netAcid Bong
In reply to @milo:wiro.world

lix fmt doesn't behave the same as nix fmt when invoked with no arguments.

nix fmt passes the project root directory (the one parent of the flake.nix) as the default argument.
Whereas, lix fmt simply acts as a nix run .#formatter.

Is this intentional? If so, what is the reason? If not, could I volunteer a PR to match nix's behaviour?

btw, what are Lix and Nix versions you're having?
09:54:35
@niko:nrab.lolniko ⚡️
In reply to @milo:wiro.world

lix fmt doesn't behave the same as nix fmt when invoked with no arguments.

nix fmt passes the project root directory (the one parent of the flake.nix) as the default argument.
Whereas, lix fmt simply acts as a nix run .#formatter.

Is this intentional? If so, what is the reason? If not, could I volunteer a PR to match nix's behaviour?

I believe nix changed that behavior like a year ago at this point
11:19:50
@niko:nrab.lolniko ⚡️ There’s been numerous warnings about that behavior changing soon at least 11:20:06
@niko:nrab.lolniko ⚡️ This is also why it’s advised to use nixfmt-tree for the formatter output 11:20:26
@llakala:matrix.orgllakala
In reply to @niko:nrab.lol
This is also why it’s advised to use nixfmt-tree for the formatter output
i have nixfmt enforced in CI, and rather than using nixfmt-tree, i just use a glob on all the files on the directory
17:45:55
@llakala:matrix.orgllakalamodern problems require modern solutions 17:46:02
@sternenseemann:systemli.orgsterniI was messing with this (https://git.lix.systems/lix-project/lix/src/commit/e9cccd47e216f0b90d68e471162a651176feb5b4/lix/libstore/build/derivation-goal.cc#L918-L931), but can't seem to see any effects of it. Is this exception somehow propagated from the daemon to the client, so I need to deploy a separate daemon or am I missing something?18:33:01
@k900:0upti.meK900Yes, it is18:34:28
@k900:0upti.meK900That's exactly what is happening18:34:33
@k900:0upti.meK900This is fully formed on the daemon side and then passed to the client as one big string18:34:46
@sternenseemann:systemli.orgsterniah that's already helpful for understanding what's going on. is there a good setup for working on the daemon side, then?20:19:55
@niko:nrab.lolniko ⚡️ If you run lix as root you can bypass talking to the daemon 21:31:10
@niko:nrab.lolniko ⚡️ It used to be the default, inherited from nix, but nowadays I believe lix always talks to the daemon unless specified otherwise 21:31:36
@niko:nrab.lolniko ⚡️ Alternatively you can run a daemon with a different store directory and connect to that instead 21:32:38
@kfears:matrix.orgKFears (they/them)
In reply to @niko:nrab.lol
If you run lix as root you can bypass talking to the daemon
Oh god
21:43:21
@kfears:matrix.orgKFears (they/them)Is this the CppNix way of making Nix work in containers?21:43:46
@sternenseemann:systemli.orgsterniit's just single user nix21:56:17
13 May 2024
@aciceri:nixos.devzrsk joined the room.13:37:30
@dariof4:matrix.orgdariof4 joined the room.14:16:05
@abbe:badti.meabbe joined the room.14:42:22
@mjm:midna.devmjmlix is now in nixos-unstable, what's the best way to use it in a NixOS config?15:47:41
@k900:0upti.meK900nix.package = pkgs.lix15:47:54
@k900:0upti.meK900Probably15:47:58
@k900:0upti.meK900Or just keep using the module15:48:02
@puck:puck.moepuck you can use nix.package = pkgs.lix; if you want; but using the overlay will guarantee more updates (tho less binary cache) 15:48:44
@mjm:midna.devmjmwell, the module/overlay doesn't easily support using the one from nixpkgs15:48:44
@mjm:midna.devmjmi do want more binary cache15:49:21
@mjm:midna.devmjm yeah i guess i'll just do nix.package then 15:50:43
@raitobezarius:matrix.orgraitobezariusto have binary cache and HEAD, we will probably need to track the channels and bolt a lix on there and rebuild with our own CI then push in our binary cache17:33:17

Show newer messages


Back to Room ListRoom Version: 10