Flake path does not provide attribute 'packages.x86_64-linux...'

This isn’t related to your question itself, but I just wanted to point out that this formatting is misleading. It gives the mistaken impression that home-manager.nixosModules.home-manager is a function taking an attrset argument. It is not. It is a nixos module, and the attrset following it is also a nixos module. They’re sequential elements of the list, not a function application. I think the existence of example code like this helps contribute to the prevalence of this mistake among new users, and I wanted to make sure that wasn’t happening here. Fortunately, the home-manager manual’s example that I assume started this has been changed to something less misleading, but this format still persists in the wild a lot.

2 Likes