!wfudwzqQUiJYJnqfSY:nixos.org

NixOS Module System

180 Members
38 Servers

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


SenderMessageTime
10 Nov 2024
@ibizaman:matrix.orgibizamanI'm happy to go to bed on a positive note, I'll post the update tomorrow :) Thanks!!23:36:53
@h7x4:nani.wtfh7x4Great!23:37:30
11 Nov 2024
@phanirithvij:matrix.orgloudgolem joined the room.08:05:18
@mattsturg:matrix.orgMatt Sturgeon Specifically, if your default is dynamic you probably want defaultText with a literalExpression or literalMD that demonstrates how the default is evaluated. 13:28:36
13 Nov 2024
@inayet:matrix.orgInayet joined the room.22:15:46
14 Nov 2024
@nbp:mozilla.orgnbp

ibizaman: I definitely agree on the fact that we need contracts, at the very least for cases where we have multiple implementations. However, I do not know what you attempted to do with mkOption and I want to suggest a very simple idea instead: “options are already one form of contracts”, there is no need to add an additional layer on top of mkOption, and most people should never look into mkOption.

On the other hand imagine the following:

config.contracts.reverse_proxy.<name> = { … };

This could be what is targetted by requesters which are looking for having a reverse proxy.

But how does these contract get honored? We could add an enum type, where each implementation provide a new entry in the enumerated type of the contract as a provider. If the provider is selected for the given contract, then we can forward the configuration to the provider option.

15:10:05

Show newer messages


Back to Room ListRoom Version: 10