NixOS Module System | 149 Members | |
| 30 Servers |
| Sender | Message | Time |
|---|---|---|
| 9 Jul 2025 | ||
| 07:41:54 | ||
| 14 Jul 2025 | ||
| 10:05:13 | ||
| 14:00:31 | ||
| 18 Jul 2025 | ||
| 12:28:34 | ||
| 20 Jul 2025 | ||
| 14:14:08 | ||
| I already asked in https://matrix.to/#/!6oudZq5zJjAyrxL2uY:0upti.me/$7AxNR83n3qUrjad6j0KXIDLtaUKnZIxy-sP_liLL04A, but this might be a better place: I have written 1x module, and I want to make use of it (read: extend it) in another .nix file. The module I have written looks like this:
Now I want to extend foo like this:
I have obviously grossly misunderstood something, so anyone here got any suggestions on how to proceed? BTW: I'm not even sure I want | 14:15:34 | |
| i think you have to overwrite the type if that is possible | 14:17:24 | |
In reply to @n4ch723hr3r:nope.chatIs your answer independent of the BTW? | 14:18:31 | |
| from what i understand about the module system everything inside attrsOf is a subtype so you have to find a way to put something new into that type | 14:19:38 | |
In reply to @n4ch723hr3r:nope.chatSo if my BTW wish is taken into account, the point you're making loses relevance, right? | 14:21:04 | |
In reply to @n4ch723hr3r:nope.chatI think you're correct about this though | 14:21:33 | |
| i was thinking about a general sense. like if you wanted to extend users.users for example. | 14:23:14 | |