Home Manager: Difference between revisions

m remove "note that" - this wiki is all notes and it is redundant
Malix (talk | contribs)
Line 57: Line 57:
{
{
   inputs = {
   inputs = {
     nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.11";
     nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.05";
     home-manager = {
     home-manager = {
       url = "github:nix-community/home-manager/release-24.11";
       url = "github:nix-community/home-manager/release-25.05";
       inputs.nixpkgs.follows = "nixpkgs";
       inputs.nixpkgs.follows = "nixpkgs";
     };
     };
   };
   };
   outputs = { self, nixpkgs, home-manager, ... }@inputs:
   outputs =
     nixosConfigurations.exampleMachine = nixosConfiguration "exampleMachine"
    {
      system = "x86_64-linux";
      self,
      modules = [
      nixpkgs,
        ./configuration.nix
      home-manager,
        home-manager.nixosModules.home-manager
      ...
        {
    }@inputs:
          home-manager.useGlobalPkgs = true;
     {
          home-manager.useUserPackages = true;
      nixosConfigurations.<HOSTNAME> = nixpkgs.lib.nixosSystem { # replace <HOSTNAME> with your actual hostname
          home-manager.users.your-username = import ./home.nix;
        system = "x86_64-linux";
         }
        modules = [
       ];
          ./configuration.nix
          home-manager.nixosModules.home-manager
          {
            home-manager.useGlobalPkgs = true;
            home-manager.useUserPackages = true;
            home-manager.users.<USERNAME> = ./home.nix; # replace <USERNAME> with your actual username
          }
         ];
       };
     };
     };
  };
}
}
</syntaxhighlight>
</syntaxhighlight>