I use flakes to manage my configuration.nix. To install a custom (non-flakes) package, I specify it as a flake input, and then add it to environment.systemPackages
directly as a nixosSystem module.
But the above is HACK. As you can see, it belongs to the well-positioned module ./features/email/himalaya-client.nix
.
The trouble is, this module apparently cannot be parameterized to pass the inputs from flake.nix.
Maybe I’m missing something. What’s the idiomatic way to approach this?