Home manager flake username not an attribute set

Hello there,

I am facing a problem I do not understand

whenever I try to do

 home-manager switch --flake .

I get

error: 'homeConfigurations.wolfgang' is not an attribute set

wolfgang is my username so I am very confused why this is happening

This is my flake.nix

{
 
  description = "My Flake";

  inputs = {
	nixpkgs.url = "nixpkgs/nixos-23.11";
	home-manager.url = "github:nix-community/home-manager/release-23.11";
	home-manager.inputs.nixpkgs.follows = "nixpkgs";
 };

  outputs = {self, nixpkgs, home-manager, ...}:
	let
	 lib = nixpkgs.lib;
	 system = "x86_64-linux";
	 pkgs = nixpkgs.legacyPackages.${system};
	in {
	nixosConfigurations = {
	 nixos = lib.nixosSystem {
	   inherit system;
	   modules = [./configuration.nix];
      };
   
    };
	homeConfigurations = {
	 wolfgang = home-manager.lib.homeManagerConfiguration;
	 inherit pkgs;
	 modules = [./home.nix];
     };
	
  };


}

Try this:

homeConfigurations = {
  wolfgang = home-manager.lib.homeManagerConfiguration {
    inherit pkgs;
    modules = [./home.nix];
  };
};

or, to be more concise:

homeConfigurations.wolfgang = home-manager.lib.homeManagerConfiguration {
  inherit pkgs;
  modules = [./home.nix];
};