!tDnwWRNkmmYtMXfaZl:nixos.org

Nix Language

1923 Members
Nix programming language357 Servers

Load older messages


SenderMessageTime
29 May 2026
@tuxy01:matrix.orgtuxy joined the room.00:58:41
@bendoubleu:llyxx.meBenDoubleU joined the room.01:23:03
@lumi:the-apothecary.clubNuwa removed their profile picture.02:45:34
@lumi:the-apothecary.clubNuwa set a profile picture.03:03:14
@hsjobeki:matrix.orghsjobekidocs say it's equivalent. https://noogle.dev/f/builtins/isNull/ But I guess it's an additional lambda call performance wise. 06:00:47
@toonn:matrix.orgtoonn MattSturgeon: Yeah, that's what I thought. Still can't find a better way to get at the options for pixelfed.nginx though, there's no valueMeta containing the configuration AFAICT. 07:57:27
@koichiio:matrix.org@koichiio:matrix.org joined the room.08:21:23
@mattsturg:matrix.orgMatt Sturgeon
In reply to @llakala:matrix.org
is there any reason to prefer isNull over x == null?

Wasn't isNull soft-deprecated at one point, and the deprecation was removed because valid use cases were identified? Maybe I'm misremembering.

Generally speaking, == null and != null is simpler and more readable, and avoids invoking a function.

Same for ? vs hasAttr imo, although I don't think that one was ever deprecated.

08:43:01
@hustlerone:matrix.orghustleroneanything to compact my code will do08:51:13
@mattsturg:matrix.orgMatt Sturgeon
nix-repl> options.services.pixelfed.nginx.type.description
"null or (submodule)"

nix-repl> options.services.pixelfed.nginx.valueMeta
{ }

Looks like an oversight in types.nullOr, not propagating its elem-type's valueMeta.
In fact, nullOr doesn't seem to implement v2 check+merge at all (nullOr's merge fn).

BTW, this room is really meant for discussing the nix language itself. For the module system there is https://matrix.to/#/#modules:nixos.org

08:52:51
@toonn:matrix.orgtoonn OK, I'll head over there. 08:55:35
@bigbird9:matrix.orgbigbird99 joined the room.22:33:13
30 May 2026
@qweru:matrix.orgqweru changed their profile picture.10:28:06
@lumi:the-apothecary.clubNuwa removed their profile picture.17:58:42
@sbstratos79:matrix.orgsbstratos79 joined the room.20:23:38
31 May 2026
@qweered_real:matrix.orgAliaksandr set a profile picture.00:31:03
@schmiddi73:matrix.orgSchmiddi joined the room.10:31:33
@lumi:the-apothecary.clubNuwa set a profile picture.12:34:09
@lumi:the-apothecary.clubNuwa changed their profile picture.12:50:47
@lumi:the-apothecary.clubNuwa changed their profile picture.15:29:25
@lumi:the-apothecary.clubNuwa changed their profile picture.15:34:35
@lumi:the-apothecary.clubNuwa changed their profile picture.17:22:20
@lumi:the-apothecary.clubNuwa changed their profile picture.18:28:26
@vandycarlos:matrix.orgVandy Carlos changed their display name from vandycarlos to Vandy arlos.22:00:30
@vandycarlos:matrix.orgVandy Carlos changed their display name from Vandy arlos to Vandy Carlos.22:00:39
1 Jun 2026
@lumi:the-apothecary.clubNuwa changed their profile picture.14:19:30
@toonn:matrix.orgtoonn There's no built-in way to detect whether a value is recursive and if it is at what points it recurses, right? 15:16:14
@tanja:catgirl.cloudTanja (she/her) 📞 TNJA (8652) changed their display name from Tanja (she/her) to Tanja (she/her) 📞 TNJA (8652).15:33:24
@alexfmpe:matrix.orgalexfmpeThat sounds undecidable15:46:02
@alexfmpe:matrix.orgalexfmpemaybe semi-undecidable if you trace calls15:46:46

Show newer messages


Back to Room ListRoom Version: 6