Nix Language | 1842 Members | |
| Nix programming language | 339 Servers |
| Sender | Message | Time |
|---|---|---|
| 24 Jul 2024 | ||
| Feels okay, maybe I just question it because I did it the first time :D | 13:43:14 | |
| 13:59:52 | ||
| That's how I do it all the time as well | 14:06:26 | |
| These questions are more suitable for nixpkgs channels since they involve nixpkgs patterns | 16:31:15 | |
| 21:08:41 | ||
| 23:57:14 | ||
| 25 Jul 2024 | ||
| 01:02:07 | ||
| How can I map over types.attrsOf option in config. Example:
How can I do something like | 03:17:19 | |
| I've tried
but this gives me infinite recursion error. | 03:24:07 | |
| * How can I map over types.attrsOf option in config. Example:
How can I do something like | 03:24:22 | |
| * I've tried
but this gives me infinite recursion error. | 03:24:27 | |
| Please don't use threads, they break some clients (such as Element Web) | 05:18:34 | |
| With that said | 05:26:22 | |
Download image.png | 05:26:23 | |
| Does this answer your Q? | 05:26:26 | |
Download image.png | 05:31:11 | |
| Namely, smth like this should work | 05:31:15 | |
In reply to @ity:itycodes.org No. I don't know the users a prori. The users of the module can use anything, e.g. someone could configure it like.
And with this example I wold want it to evaluate to
| 09:26:05 | |
In reply to @ity:itycodes.org* No. I don't know the users a prori. The users of the module can use anything, e.g. someone could configure it like.
And with this example I wold want it to evaluate to
| 09:26:12 | |
| * No. I don't know the users a prori. The users of the module can use anything, e.g. someone could configure it like.
And with this example I wold want it to evaluate to
| 09:26:34 | |
| Why is foo for bob true while bar for alice is false | 09:32:20 | |
| Which part exactly are you stuck on? | 09:32:34 | |
In reply to @ity:itycodes.orgThat's a small example of what I want it to do. I want to write a module, but it's for home-manager, so it must work for everyone and I don't know what will be the attribute for users in this example.I want to set users.${user}.foo = mkIf config.users.${user}.bar true for every attribute of users. That's also just example, what I'm trying to write involves more complicated expression. | 09:38:31 | |
| But I've managed to figure it out:
| 09:39:30 | |
| 10:48:32 | ||
| 12:47:19 | ||
| 16:39:14 | ||
| 16:55:01 | ||
| 17:32:05 | ||
| 18:47:40 | ||