| 26 Jan 2022 |
Zhaofeng Li | Admittedly I ran into the problem a couple of weeks ago in my setup when I rebased against master, but there were comments about it blocking the channel so I disabled it locally without looking closer. Then I kind of forgot about it 🙁 | 02:24:54 |
Linux Hackerman | In reply to @linus.heckemann:matrix.mayflower.de maybe specialArgs doesn't have that problem though? I'll give it a try same problem :/ | 07:39:34 |
Zhaofeng Li | What does your imports looks like? | 07:50:22 |
Zhaofeng Li | * What does your imports look like? | 07:50:33 |
Zhaofeng Li | In reply to @linus.heckemann:matrix.mayflower.de I tried the latter, it resulted in infinite recursion in combination with imports = [ inputs.nixos-mailserver ]; Oh right, you probably want inputs.nixos-mailserver.nixosModule | 07:50:50 |
Linux Hackerman | { config, pkgs, inputs, ... }:
{
imports =
[
inputs.nixos-mailserver.nixosModule
];
| 08:29:28 |
Linux Hackerman | also causes infinite recursion | 08:29:36 |
Linux Hackerman | I believe this is because inputs depends on the closure of nixos modules in the system, but the closure of nixos modules depends on inputs (because inputs is used right there in imports). | 08:30:24 |
Linux Hackerman | inputs would have to be passed in "from outside" and can't be defined within a module. | 08:30:40 |