I have not seen any of the examples, anywhere, pass anything involving the identifier system
to home-manager.lib.homeManagerConfiguration
aside from the pkgs
attribute needing to be assigned.
$ nix build --no-link .#homeConfigurations.jacob.activationPackage
error: 'homeManagerConfiguration' at /nix/store/d5j5vgsfvwkaqmc1qhwaay5mp51yaqkm-source/flake.nix:44:36 called without required argument 'system'
at /nix/store/47kakq2ca4llzvjpfg64s5vf1xba3j2f-source/flake.nix:37:15:
36| homeConfigurations = {
37| jacob = home-manager.lib.homeManagerConfiguration {
| ^
38| inherit pkgs;
I’m very confused, as far as I can tell I am running the right command, and my config has the same stuff as the examples. It isn’t very complicated yet.
https://github.com/spikespaz/dotfiles/blob/b083900b25dfa3c269b059dd9564e3353a121ff6/flake.nix#L37
For a second question: What is the difference between pkgs = nixpkgs.legacyPackages."x86_64-linux"
and the import
that I have above?
Third, where do I read about functions such as home-manager.lib.homeManagerConfiguration
and attributes like nixpkgs.legacyPackages
?