!9IQChSjwSHXPPWTa:lix.systems

Lix

1122 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-rooms313 Servers

Load older messages


SenderMessageTime
6 Mar 2026
@just1602:systemli.orgjust1602Ugh, I'm less sure why you would do that. Could make sense for libraries, but not that much for infra management IMO 23:48:28
7 Mar 2026
@vczf:matrix.orgvczfAm I experiencing unjustified FUD if the vibes I get are “DRM blobs are coming for nix”00:13:39
@ian-h-chamberlain:matrix.orgian-h-chamberlain

does anyone have a recipe handy for getting into a environment with nix-direnv that doesn't require a whole flake to use? I'm getting tired of creating bespoke flakes whenever I need some tools for a random repo I checked out.

Basically I am hoping for something like nix shell nixpkgs#hello nixpkgs#bash but that I can stick into .envrc so it integrates with my shell automatically

02:55:23
@hexa:lossy.networkhexalike shell.nix?03:15:54
@hexa:lossy.networkhexahttps://nix.dev/guides/recipes/direnv.html03:16:19
@hexa:lossy.networkhexa where nixpkgs can just be nixpkgs = import <nixpkgs> { }; 03:16:36
@ian-h-chamberlain:matrix.orgian-h-chamberlain

same problem: I just want a 1-2 line snippet to put in .envrc and be done with it. Actually in that case I think flake is easier since I can use a template for it.

I'm experimenting now with nix shell --expr but it feels like it will be a pain to plumb my system registry flakes through into it...

03:42:27
@ian-h-chamberlain:matrix.orgian-h-chamberlain *

same problem with creating a whole extra file. I just want a 1-2 line snippet to put in .envrc and be done with it. Actually in that case I think flake is easier since I can use a template for it.

I'm experimenting now with nix shell --expr but it feels like it will be a pain to plumb my system registry flakes through into it...

03:42:37
@aloisw:julia0815.de@aloisw:julia0815.de
In reply to @just1602:systemli.org
I guess it's one way tro write stuff in rust without linking issue
By linking against a WASM runtime written in Rust?
07:11:11
@kspatlas:tchncs.deKSP AtlasRedacted or Malformed Event12:39:55
@kspatlas:tchncs.deKSP Atlaswait my bad i read it wrong12:40:22
@kspatlas:tchncs.deKSP Atlasso sorry12:40:24
@kspatlas:tchncs.deKSP Atlaswait nvm12:40:40
@kspatlas:tchncs.deKSP Atlasi guess ill resend it12:40:49
@kspatlas:tchncs.deKSP AtlasI noticed that, on https://lix.systems/team/, Jade is given they/them pronouns in their Core Team section, while the conflict of interest statements use the pronouns "herself" for them. Was this intended?12:41:50
@liyua:liyua.moeLiyua

Is there a way to find out if lix or nix is being used at evaluation time? My config uses lix but nixos-anywhere uses nix and right now I need to make explicit changes to use nixos-anywhere because the pipe-operator is called pipe-operators on nix. I was thinking maybe I can check which build system (idk what else to call it) is used and then have an if statement decide whether to use pipe-operator or pipe-operators.

13:41:32
@aloisw:julia0815.de@aloisw:julia0815.de At evaluation time you can check whether builtins.nixVersion is "2.18.3-lix", but this sounds like eval time is too late because that's not when you enable experimental features? 13:44:20
@kfears:matrix.orgKFears 🏳️‍⚧️ (they/them)
In reply to @liyua:liyua.moe

Is there a way to find out if lix or nix is being used at evaluation time? My config uses lix but nixos-anywhere uses nix and right now I need to make explicit changes to use nixos-anywhere because the pipe-operator is called pipe-operators on nix. I was thinking maybe I can check which build system (idk what else to call it) is used and then have an if statement decide whether to use pipe-operator or pipe-operators.

You can add both to your config, it's not validated besides throwing a warning anyway
13:44:54
@liyua:liyua.moeLiyuaI have it in the nix configuration and when I tried that the build failed13:45:21
@liyua:liyua.moeLiyua

(as in the nix.settings... not /etc/nix.conf)

13:45:44
@aloisw:julia0815.de@aloisw:julia0815.de Yeah that will always check against nix.package and reject unknown settings. 13:46:05
@kfears:matrix.orgKFears 🏳️‍⚧️ (they/them)Though, forward pipe doesn't exist in Lix, and there might be (but I don't remember, so double check) operator precedence difference13:46:34
@kfears:matrix.orgKFears 🏳️‍⚧️ (they/them)
In reply to @liyua:liyua.moe
I have it in the nix configuration and when I tried that the build failed
Hmm, isn't "pipe-operator" part of "experimental-features" setting which is a freeform string?
13:47:29
@liyua:liyua.moeLiyua

Other than the pipe-operator(s) thing I haven't noticed any issues

13:47:58
@liyua:liyua.moeLiyuafor me it's a list of strings13:48:19
@aloisw:julia0815.de@aloisw:julia0815.de It is but unknown experimental features are also rejected by the config validation. 13:48:20
@liyua:liyua.moeLiyua

right now I have an if statement combined with a boolean in a let-in block so I can more easily switch without having to comment out the right lines but I'd like to automate it

13:49:35
@aloisw:julia0815.de@aloisw:julia0815.de Tbh I'm not sure what nix.settings has to do with that and when Nix is used for evaluation. If you just use nix once then not caring about it in the config and passing --extra-experimental-features pipe-operators should work? 13:49:51
@liyua:liyua.moeLiyuaAlthough idk if that goes against the idea of declarativeness when the outside env changes the output13:50:05
@liyua:liyua.moeLiyua

The thing is when I use lix the config with pipe-operators doesn't evaluate and when I use nix the config with pipe-operator doesn't evaluate and I don't want to have to pass the 40 character extra exp features flag every time I type a nix command

13:52:03

Show newer messages


Back to Room ListRoom Version: 10