Home Manager: Difference between revisions
m Fix broken link. Not sure what the old link pointed to, so I made it point to "Standalone Installation", which seems to match the context. |
→Usage as a NixOS module in a Flake: cleanup |
||
| Line 63: | Line 63: | ||
}; | }; | ||
}; | }; | ||
outputs = | outputs = { self, nixpkgs, home-manager, ... } @ inputs: | ||
{ | { | ||
nixosConfigurations.<HOSTNAME> = nixpkgs.lib.nixosSystem { # replace <HOSTNAME> with your actual hostname | nixosConfigurations.<HOSTNAME> = nixpkgs.lib.nixosSystem { # replace <HOSTNAME> with your actual hostname | ||
| Line 80: | Line 74: | ||
useGlobalPkgs = true; | useGlobalPkgs = true; | ||
useUserPackages = true; | useUserPackages = true; | ||
extraSpecialArgs = { inherit inputs; } #If you want access to inputs in your home.nix | |||
users.<USERNAME> = ./home.nix; # replace <USERNAME> with your actual username | users.<USERNAME> = ./home.nix; # replace <USERNAME> with your actual username | ||
}; | }; | ||