!wfudwzqQUiJYJnqfSY:nixos.org

NixOS Module System

168 Members
35 Servers

You have reached the beginning of time (for this room).


SenderMessageTime
17 Dec 2024
@mattsturg:matrix.orgMatt Sturgeon

I really don't recommend using tryEval in this way... It was very situational in nixvim, and even then still probably wasn't the best solution. As you've pointed out, it has plenty of downsides.

I would recommend trying to find the option by recursively walking the "option attr path" (aka loc), checking each attr for lib.isOption and if true, continuing with opt.type.getSubOptions opt.loc.

getOptionRecursive was the part of the file I was hoping you would take inspiration from 😅

Once you have the actual (sub)option you can make use of opt.isDefined with no hacks needed.

09:49:16
20 Dec 2024
@xiaoxiangmoe:matrix.org🐰 xiaoxiangmoe joined the room.13:59:03
21 Dec 2024
@stablejoy:matrix.orgstablejoy left the room.05:08:18
@sleepymonad:matrix.org@sleepymonad:matrix.org joined the room.21:16:14
@nam3l33ss:matrix.org·☽•Nameless☆•777 · ± changed their profile picture.21:37:38
@sleepymonad:matrix.org@sleepymonad:matrix.org set a profile picture.21:56:33
22 Dec 2024
@allrealmsoflife:matrix.orgallrealmsoflife joined the room.20:27:50
26 Dec 2024
@lorenzleutgeb:matrix.orgLorenz Leutgeb changed their display name from Lorenz Leutgeb to Lorenz Leutgeb (📞6343).19:33:43
@lorenzleutgeb:matrix.orgLorenz Leutgeb changed their display name from Lorenz Leutgeb (📞6343) to Lorenz Leutgeb 📞6343.19:36:58
27 Dec 2024
@nazarewk:matrix.orgkdn changed their display name from nazarewk to kdn.12:38:41
31 Dec 2024
@getchoo:matrix.orggetchoo changed their profile picture.12:38:57
1 Jan 2025
@mjolnir:nixos.orgNixOS Moderation Botchanged room power levels.14:26:09
@jopejoe1:matrix.orgjopejoe1 (4094@epvpn) changed their display name from jopejoe1 [4094] to jopejoe1.23:30:10

Show newer messages


Back to Room ListRoom Version: 10