| 7 Mar 2024 |
@djacu:matrix.org | After digging some more it seems like it actually might happen in mergeDefinitions which calls filterOverrides'. My reading of it leads me to believe that definitions with no priority get set a priority of defaultOverridePriority which is fairly low (100). | 05:15:44 |
| 9 Mar 2024 |
| Qyriad joined the room. | 00:39:08 |
| 14 Mar 2024 |
| NixOS Moderation Botchanged room power levels. | 18:44:27 |
| 15 Mar 2024 |
| spacesbot - keeps a log of public NixOS channels joined the room. | 04:06:23 |
| 16 Mar 2024 |
| Jason Odoom joined the room. | 02:12:10 |
| mj joined the room. | 14:00:14 |
| 17 Mar 2024 |
| Qyriad left the room. | 20:43:44 |
| 18 Mar 2024 |
| Infinidoge joined the room. | 18:47:27 |
| 19 Mar 2024 |
| NixOS Moderation Botchanged room power levels. | 00:29:53 |
| 21 Mar 2024 |
| NixOS Moderation Botchanged room power levels. | 18:02:50 |
| 22 Mar 2024 |
| chadac joined the room. | 02:03:16 |
| terminalfilth joined the room. | 05:13:35 |
| terminalfilth set a profile picture. | 05:24:39 |
| terminalfilth changed their profile picture. | 05:24:49 |
| 23 Mar 2024 |
| Federico Damián Schonborn joined the room. | 00:37:24 |
| SomeoneSerge (migrating synapse) changed their display name from SomeoneSerge (hash-versioned python modules when) to SomeoneSerge (migrating synapse). | 02:11:12 |
| 27 Mar 2024 |
hexa | is there a way to set an optional option default? | 23:21:25 |
hexa | default = if foo then "bar" else omit;
| 23:21:46 |
hexa | * default = if foo then "bar" else omit; # if not foo, consider the value unset
| 23:22:21 |
hexa | uhhhhhh | 23:25:58 |
hexa | can I like | 23:26:00 |
hexa | bla = mkOption {
} // lib.optionalAttrs (cond) {
default = "bar";
};
| 23:26:37 |
hexa | probably can | 23:26:51 |
Infinidoge | I think that would work | 23:27:14 |
Infinidoge | Might need parenthesis, but even then | 23:27:23 |
hexa | 🙂 | 23:27:35 |
Infinidoge | If it doesn't work, you can definitely do it through config though | 23:28:44 |
Infinidoge | config.bla = lib.mkIf cond (lib.mkDefault "value");
| 23:29:08 |
hexa | yeah, but that's not really discoverable | 23:29:36 |
hexa | * bla = mkOption {
defaultText = ''
Something if cond, else unset
'';
} // lib.optionalAttrs (cond) {
default = "bar";
};
| 23:30:03 |