NixOS Module System | 143 Members | |
| 28 Servers |
| Sender | Message | Time |
|---|---|---|
| 13 Dec 2024 | ||
| The problem likely comes from the fact that renamed options aggregate the values from the old definitions, ... Except that we have not yet defined a standard way to gather for 'any' type of submodules. Thus we do not have a set of option sets to work with. Submodules no longer expose the option set as part of their results. If you were to add it back locally, It might be possible to extend the doRename function to work with a set of options. | 10:20:01 | |
| Thanks for looking into it and the explanation. Maybe it's something I'll look into working on once I'm more familiar with some of the internals here This was actually my first time looking at the impl of stuff like doRename 😆 | 22:59:21 | |
| 14 Dec 2024 | ||
| Don't rename modules usually expect the alias-option to not exist; i.e. I've definitely made renames into submodules from outside before (we do this for 50% of nixvim lol), but IIRC making renames out from submodules runs into issues because In nixvim I experimented with resolving the option path recursively, using (This would be It's also been a while since I looked at the linked code, and IIRC some stuff in that file is broken. Probably the unrelated | 04:48:16 | |
| 17 Dec 2024 | ||
| Came back to the problem tonight before checking this room again. Seems I came up with a pretty similar solution lol
The | 02:01:44 | |
| And seriously, thanks for linking that deprecations file. If I ever need to do this more, I'll totally have to borrow some stuff from there 👍️ | 02:03:28 | |
| I really don't recommend using I would recommend trying to find the option by recursively walking the "option attr path" (aka
Once you have the actual (sub)option you can make use of | 09:49:16 | |
| 20 Dec 2024 | ||
| 13:59:03 | ||
| 21 Dec 2024 | ||
| 05:08:18 | ||
| 21:16:14 | ||
| 21:37:38 | ||
| 21:56:33 | ||
| 22 Dec 2024 | ||
| 20:27:50 | ||
| 26 Dec 2024 | ||
| 19:33:43 | ||
| 19:36:58 | ||
| 27 Dec 2024 | ||
| 12:38:41 | ||
| 31 Dec 2024 | ||
| 12:38:57 | ||
| 1 Jan 2025 | ||
| 14:26:09 | ||
| 23:30:10 | ||
| 3 Jan 2025 | ||
| Following up on my message about contracts from a while ago, I finally had the motivation and time to create a pre-RFC about it :) https://discourse.nixos.org/t/pre-rfc-decouple-services-using-structured-typing/58257 | 23:19:16 | |
| * Following up on my message about contracts from a little while ago, I finally had the motivation and time to create a pre-RFC about it :) https://discourse.nixos.org/t/pre-rfc-decouple-services-using-structured-typing/58257 | 23:19:47 | |
| 6 Jan 2025 | ||
| Thank you, while I have some objections about some of the details, I do appreciate a lot the effort in making this possible. I tried to provide a short explanations of my concerns on discord. | 11:58:49 | |
| * Thank you, while I have some objections about some of the details, I do appreciate a lot the effort in making this possible. I tried to provide a short explanations of my concerns on discourse. | 11:59:20 | |
| 11 Jan 2025 | ||
| 04:07:52 | ||
| 04:42:56 | ||
| 21:20:48 | ||
| 15 Jan 2025 | ||
| 19:01:46 | ||
| I was just writing some assertions, and wanted to show the option defs for an attr-of an option, isolated using However, I came up with a proof of concept that seems to mostly work, however it's failing My question: is there an intended way to print definitions/locations for an attr-of-an-option and, if not, how could I improve my patch to make it PR-ready? Or is there an alternative approach I could take? In this specific scenario, I'm wanting to | 21:37:21 | |
| 17 Jan 2025 | ||
| 04:39:17 | ||
| 27 Jan 2025 | ||
| 02:49:44 | ||
| 30 Jan 2025 | ||
| 03:01:40 | ||