!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-rooms294 Servers

Load older messages


SenderMessageTime
15 Oct 2025
@raitobezarius:matrix.orgraitobezarius we could have a weird lang construct where we would have input = source': {{ foo = source.foo + 1; }} 01:28:21
@charles:computer.surgeryCharlesdoes it? scope restriction would be optional; seems like it gives you strictly more control over what your code can/can't do01:28:22
@raitobezarius:matrix.orgraitobezarius where {{ means no inheritance 01:28:25
@raitobezarius:matrix.orgraitobezariusbut that's nix2 realm01:28:37
@raitobezarius:matrix.orgraitobezarius so I defer to nix2 expert, piegames 01:28:42
@raitobezarius:matrix.orgraitobezariusas far as I'm concerned, I feel the builtin path for this seems unlikely01:29:19
@charles:computer.surgeryCharlesi agree01:29:33
@raitobezarius:matrix.orgraitobezariusIn the current constraints of Nix1, linting is the best available option perhaps01:29:40
@raitobezarius:matrix.orgraitobezarius(or scopedImport as you said but separate file)01:29:49
@charles:computer.surgeryCharles (which would be the case that fails eval because source is not nameable here) 01:30:17
@charles:computer.surgeryCharlesi think you transposed these two things but yeah01:30:46
@raitobezarius:matrix.orgraitobezariussorry ^^, 3am01:30:57
@charles:computer.surgeryCharlesnp lol01:31:05
@piegames:flausch.socialpiegamesNyaaaaawn05:46:49
* @piegames:flausch.socialpiegames backlogs05:46:54
@piegames:flausch.socialpiegamesWhatever you do, it needs to fail at parse time nit run time05:52:44
@piegames:flausch.socialpiegamesI think a specially scoped closure à la Rust moving semantics would be possible in theory05:53:08
@piegames:flausch.socialpiegamesBut also, I think that we should probably look into module systems first to see if they can solve that better05:53:39
@eyjhb:eyjhb.dkeyJhb Minor thing raitobezarius , but the ! at the end of the link in #announcements:lix.systems gets interpreted as part of the link in some clients :D 05:58:38
@charles:computer.surgeryCharlesi would guess a module system would fulfill this desire, yeah06:04:16
@kfears:matrix.orgKFears (burnt out)Is there anything that improves modules planned, btw?06:14:07
@charles:computer.surgeryCharles
In reply to @kfears:matrix.org
Is there anything that improves modules planned, btw?
This is modules as in programming language module systems, not as in nixos modules
06:18:38
@kfears:matrix.orgKFears (burnt out)Ah Well, anything for NixOS modules, as a treat? :)06:21:37
@mrwildbunnycat:matrix.orgMrWildBunnycat joined the room.14:54:40
@ellyse_e:matrix.orgellyse_e joined the room.17:10:09
@antifuchs:asf.computerantifuchs inspired by a conversation earlier, I got a f attribute on my lix repl now that loads the flake in the current directory, but using flake-compat (and searching upwards for a flake.nix). took a looong time, but yay (also, I guess the best thing about this is the realization that I could import nixpkgs/lib as a lib repl attribute too) 23:00:58
16 Oct 2025
@somasis:matrix.orgsomasis sorry if this is too off topic, but i've been wondering lately (especially since the flakes feature freeze stuff was posted): do people have suggestions of best practices for organizing nixos configs without using flakes, involving niv, npins, or lon, or whatever? I started using nixos using flakes, but i'm interested in reorganizing my config to work without flakes now (ideally without channels ever being involved) 01:51:58
@ekler:feel-co.orgekler

i find npins to be okay, it's also easy to use

02:21:41
@ekler:feel-co.orgekler

just note that there's two things called "channels": the things on channels.nixos.org (and you can manage references to those with npins which allows proper locking) vs the stuff on your local system that is managed via nix-channel + NIX_PATH (which is the impure, messy stuff that you don't want)

02:23:28
@somasis:matrix.orgsomasis indeed 02:28:41

Show newer messages


Back to Room ListRoom Version: 10