!wfudwzqQUiJYJnqfSY:nixos.org

NixOS Module System

82 Members
21 Servers

Load older messages


SenderMessageTime
14 Mar 2024
@mjolnir:nixos.orgNixOS Moderation Botchanged room power levels.18:44:27
15 Mar 2024
@spacesbot:nixos.devspacesbot - keeps a log of public NixOS channels joined the room.04:06:23
16 Mar 2024
@nerves:bark.lgbtJason Odoom joined the room.02:12:10
@jee_mj:matrix.orgmj joined the room.14:00:14
17 Mar 2024
@qyriad:matrix.org@qyriad:matrix.org left the room.20:43:44
18 Mar 2024
@infinidoge:matrix.org@infinidoge:matrix.org joined the room.18:47:27
19 Mar 2024
@mjolnir:nixos.orgNixOS Moderation Botchanged room power levels.00:29:53
21 Mar 2024
@mjolnir:nixos.orgNixOS Moderation Botchanged room power levels.18:02:50
22 Mar 2024
@chadac:matrix.orgchadac joined the room.02:03:16
@t3rminal-filth:matrix.orgterminalfilth joined the room.05:13:35
@t3rminal-filth:matrix.orgterminalfilth set a profile picture.05:24:39
@t3rminal-filth:matrix.orgterminalfilth changed their profile picture.05:24:49
23 Mar 2024
@federicodschonborn:matrix.org@federicodschonborn:matrix.org joined the room.00:37:24
@ss:someonex.netSomeoneSerge (utc+3) changed their display name from SomeoneSerge (hash-versioned python modules when) to SomeoneSerge (migrating synapse).02:11:12
27 Mar 2024
@hexa:lossy.networkhexais there a way to set an optional option default?23:21:25
@hexa:lossy.networkhexa
  default = if foo then "bar" else omit;
23:21:46
@hexa:lossy.networkhexa *
  default = if foo then "bar" else omit; # if not foo, consider the value unset
23:22:21
@hexa:lossy.networkhexauhhhhhh23:25:58
@hexa:lossy.networkhexacan I like23:26:00
@hexa:lossy.networkhexa
  bla = mkOption {
  } // lib.optionalAttrs (cond) {
    default = "bar";
  };
23:26:37
@hexa:lossy.networkhexaprobably can23:26:51
@infinidoge:matrix.org@infinidoge:matrix.orgI think that would work23:27:14
@infinidoge:matrix.org@infinidoge:matrix.orgMight need parenthesis, but even then23:27:23
@hexa:lossy.networkhexa🙂23:27:35
@infinidoge:matrix.org@infinidoge:matrix.org If it doesn't work, you can definitely do it through config though 23:28:44
@infinidoge:matrix.org@infinidoge:matrix.org
config.bla = lib.mkIf cond (lib.mkDefault "value");
23:29:08
@hexa:lossy.networkhexayeah, but that's not really discoverable23:29:36
@hexa:lossy.networkhexa *
  bla = mkOption {
    defaultText = ''
      Something if cond, else unset
    '';
  } // lib.optionalAttrs (cond) {
    default = "bar";
  };
23:30:03
@hexa:lossy.networkhexaupdate the example with defaultText 23:30:12
@infinidoge:matrix.org@infinidoge:matrix.orgYou're already gonna need to use the documentation text override, so I don't think it would really affect the discoverability that much23:30:19

Show newer messages


Back to Room ListRoom Version: 10