!wfudwzqQUiJYJnqfSY:nixos.org

NixOS Module System

44 Members
14 Servers

Load older messages


SenderMessageTime
24 Apr 2024
@infinidoge:matrix.orgInfinidogeI wish they were better documented because they are a really cool and interesting feature of the language16:38:55
@shalokshalom:kde.orgShalokShalom We have functors :O 20:17:47
@2clayzx:matrix.org2clayzx joined the room.20:21:56
@nuko:shimeji.cafefsnkty joined the room.21:01:45
@pxc:matrix.orgpxc

are there any libraries for writing modules designed to work across module systems? Is there any kind of way to introspect what kind of module system is consuming a module?

i.e., I'd like to be able to do like mkIf <this is being used in Nix-Darwin> ... and mkIf <this is being used in Home Manager ..., etc.

21:38:48
@pxc:matrix.orgpxc

(obviously, where interfaces are compatible, you can have some modules imported in various different module systems and just werk; I do this with nix.settings stuff in my personal Nix configs for HM, NixOS, and Nix-Darwin)

I'm wondering what projects have explored/attempted this the most

21:39:54
@pxc:matrix.orgpxcI think nixvim might do some of this but it's not what I would consider a simple example21:40:39
25 Apr 2024
@lychee:lefishe.club@lychee:lefishe.club joined the room.06:45:38
@nbp:mozilla.orgnbp pxc: mkSinkUndeclaredOptions can be used to fake option declarations for such cases. If such interopperable module exists, they might define option for some module set and not others.
If any such library exists, they would likely make use of this option declaration function as a mean to make generic modules work across module-sets.
09:48:27
@nbp:mozilla.orgnbp * pxc: mkSinkUndeclaredOptions can be used to fake option declarations for such cases. If such interopperable module exists, they might define option for some module set which are not in others.
If any such library exists, they would likely make use of this option declaration function as a mean to make generic modules work across module-sets.
09:48:54
@nbp:mozilla.orgnbp * pxc: If such interoperable module exists, they might define option for some module set which are not in others. mkSinkUndeclaredOptions can be used to fake the interface (option declarations) of other module sets. 09:51:50
@stablejoy:matrix.orgstablejoy joined the room.12:15:07
@pxc:matrix.orgpxc
In reply to @nbp:mozilla.org
pxc: If such interoperable module exists, they might define option for some module set which are not in others. mkSinkUndeclaredOptions can be used to fake the interface (option declarations) of other module sets.
thank you for the tip!
14:56:38
@adam:robins.wtf@adam:robins.wtf left the room.19:30:54
@ss:someonex.netSomeoneSerge (UTC+1) changed their display name from SomeoneSerge (void) to SomeoneSerge (UTC+1).23:01:27
@zraexy:nixos.devDavid Mell (zraexy) joined the room.23:09:21
@zraexy:nixos.devDavid Mell (zraexy) changed their display name from David Mell to David Mell (zraexy).23:52:06
26 Apr 2024
@stablejoy:matrix.orgstablejoy changed their profile picture.14:03:53
@thomaslepoix:matrix.orgthomaslepoix joined the room.14:07:08
@federicodschonborn:matrix.orgFederico Damián Schonborn changed their profile picture.14:49:03
@pxc:matrix.orgpxc changed their display name from pxc to pxc (why).23:32:11
@pxc:matrix.orgpxc changed their display name from pxc (why) to pxc.23:32:18
@qyriad:katesiria.orgQyriad changed their display name from Qyriad to Qyriad (she/they).23:47:44
@qyriad:katesiria.orgQyriad changed their display name from Qyriad (she/they) to Qyriad.23:47:57
27 Apr 2024
@qyriad:katesiria.orgQyriad changed their display name from Qyriad to Qyriad .00:01:06
@qyriad:katesiria.orgQyriad changed their display name from Qyriad to Qyriad.00:09:42
@pxc:matrix.orgpxc set a profile picture.00:46:07
@pxc:matrix.orgpxc removed their profile picture.00:48:06
@lychee:lefishe.club@lychee:lefishe.club left the room.14:37:23
@ygt:matrix.orgnadir joined the room.18:22:16

There are no newer messages yet.


Back to Room ListRoom Version: 10