But when I run sudo nixos-rebuild switch --flake ".#myHost", I get:
error: anonymous function at /nix/store/l9hrn8apr46db57m25hvbwql5ab3vs4f-source/home.nix:1:1
called without required argument 'config'
Now this is a fairly intelligible error message–I just have to pass config to ./home.nix and it should be all squared away. But where is an appropriate config to use? What gets passed to ./home.nix when I forgo the overlays and instead put home-manager.users.myUser = import ./home.nix?
If anybody has good documentation for the argument passing behavior it’d be greatly appreciated.
Make home-manager.users.myUser = import … a home-manager.users.myUser.imports = [ ./home.nix ], then the module system will take over and call with the correct arguments.
which worked, but I don’t want to accidentally stop the propagation of the correct/default config. Would it use the nixpkgs in scope unless specified otherwise by nixpkgs.pkgs?
Ok, awesome! That makes sense. Thanks for clarifying.
I did use the above solution. It just bugged me that I didn’t know what it was doing.
I’ll read through that. Thanks for the suggestion.