Home Manager: Difference between revisions

QuBe (talk | contribs)
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.
Cktiel (talk | contribs)
 
Line 63: Line 63:
     };
     };
   };
   };
   outputs =
   outputs = { self, nixpkgs, home-manager, ... } @ inputs:
    {
      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
             };
             };