!9IQChSjwSHXPPWTa:lix.systems

Lix

699 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-rooms215 Servers

Load older messages


SenderMessageTime
20 Nov 2024
@just1602:systemli.orgjust1602

Linux Hackerman: oh yeah, I know it's not a lix problem, maybe I shouldn't have post here about it. It was more, damn compiling libreoffice didn't happen before.

But thanks for the info :)

20:37:32
@just1602:systemli.orgjust1602nixpkgs is soo big, I try to go see the PR that fix the broken package and Github 500 in my face :(20:39:01
@szlend:matrix.orgszlendAm I literally the only person who consistently gets annoyed by the lack of a null coalescing operator (or library function) in Nix/nixpkgs? I can't find any open issue about it :D 21:20:02
@szlend:matrix.orgszlendOr am I missing something really obvious21:20:13
@benjamin:computer.surgeryolivia
In reply to@szlend:matrix.org
Am I literally the only person who consistently gets annoyed by the lack of a null coalescing operator (or library function) in Nix/nixpkgs? I can't find any open issue about it :D
nah I also want this
21:30:10
@benjamin:computer.surgeryolivia I think my preferred syntax would be or, and attrset.?attr would be equivalent to current attrset.attr or null 21:31:23
@szlend:matrix.orgszlend I swear I'm gonna add this to nixpkgs right now. What would we call it? lib.coalesce a b? Hopefully something shorter 21:31:26
@benjamin:computer.surgeryoliviabut unfortunately that's a backwards incompatible change21:31:31
@szlend:matrix.orgszlendI'd be happy with a lib function21:31:45
@benjamin:computer.surgeryoliviayeah, same21:31:53
@benjamin:computer.surgeryolivia
In reply to@szlend:matrix.org
I swear I'm gonna add this to nixpkgs right now. What would we call it? lib.coalesce a b? Hopefully something shorter
lib.<|> /s
21:32:47
@szlend:matrix.orgszlendlol21:33:07
@benjamin:computer.surgeryolivia rust calls this .or (a method), haskell calls it <|>, js calls it ??, C calls it || (sorta) 21:35:05
@benjamin:computer.surgeryolivianone of these are usable as a library function here21:35:36
@szlend:matrix.orgszlendthere's already a lib.or though unfortunately. It could be lib.either but it kinda implies the same mechanics21:35:40
@szlend:matrix.orgszlendthough maybe not, just read the docs™21:36:08
@szlend:matrix.orgszlend I like the sound of lib.either a b 21:36:24
@benjamin:computer.surgeryoliviayeah that sounds reasonable to me21:36:42
@szlend:matrix.orgszlendnever thought I would be here complaining about a language being too strict about falseyness21:37:38
@benjamin:computer.surgeryolivialol21:37:57
@benjamin:computer.surgeryoliviaI'm very much happy with null-coalescing being a different operation from boolean-or21:38:16
@szlend:matrix.orgszlendhttps://github.com/NixOS/nixpkgs/pull/35768122:02:03
@charles:computer.surgeryCharlesI think the bikeshed should be called "coalesce" because I was immediately able to guess what it did because of the SQL thing of the same name22:52:21
@charles:computer.surgeryCharlesMaybe there should be a vote to determine whether there should be a vote to determine the name22:53:56
@bl1nk:matrix.orgbl1nk Hey all, I finally switched over from nix to lix. I reused my existing home-manager configuration which includes some nix.settings. Now I see a lot of
warning: Ignoring the client-specified setting 'auto-optimise-store', because it is a restricted setting and you are not a trusted user
warning: Ignoring the client-specified setting 'log-lines', because it is a restricted setting and you are not a trusted user
warning: Ignoring the client-specified setting 'max-free', because it is a restricted setting and you are not a trusted user
warning: Ignoring the client-specified setting 'min-free', because it is a restricted setting and you are not a trusted user
when direnv'ing into my devshell. Did I break things, or is this expected because something changed?
22:58:56
@bl1nk:matrix.orgbl1nk
In reply to@bl1nk:matrix.org
Hey all, I finally switched over from nix to lix. I reused my existing home-manager configuration which includes some nix.settings. Now I see a lot of
warning: Ignoring the client-specified setting 'auto-optimise-store', because it is a restricted setting and you are not a trusted user
warning: Ignoring the client-specified setting 'log-lines', because it is a restricted setting and you are not a trusted user
warning: Ignoring the client-specified setting 'max-free', because it is a restricted setting and you are not a trusted user
warning: Ignoring the client-specified setting 'min-free', because it is a restricted setting and you are not a trusted user
when direnv'ing into my devshell. Did I break things, or is this expected because something changed?
I'm taking that back. It must have been some leftovers - works as expected now.
23:09:03
21 Nov 2024
@szlend:matrix.orgszlendI assume this just never worked and Nix silently swallowed it00:01:56
@szlend:matrix.orgszlendauto-optimise-store, max-free, min-free are very much daemon settings and should preferably be set globally in /etc/nix/nix.conf. I wasn't even aware these could be passed down to the daemon from the client :D 00:04:10
@szlend:matrix.orgszlend alternatively you can set trusted-users = <your user> in /etc/nix/nix.conf like suggested 00:04:48
@jost:alemann.devJost joined the room.00:09:44

There are no newer messages yet.


Back to Room ListRoom Version: 10