Finally fixed infinite recursion import issue.
This commit is contained in:
		
							parent
							
								
									1f7f488d3d
								
							
						
					
					
						commit
						2e0be055b9
					
				| 
						 | 
					@ -63,14 +63,9 @@
 | 
				
			||||||
      sharedOverlays = [ nur.overlay emacs-overlay.overlay ];
 | 
					      sharedOverlays = [ nur.overlay emacs-overlay.overlay ];
 | 
				
			||||||
      hostDefaults = {
 | 
					      hostDefaults = {
 | 
				
			||||||
        modules = mapModulesRec' ./modules import ++ [
 | 
					        modules = mapModulesRec' ./modules import ++ [
 | 
				
			||||||
          home-manager.nixosModules.home-manager
 | 
					 | 
				
			||||||
          {
 | 
					 | 
				
			||||||
            home-manager.useGlobalPkgs = true;
 | 
					 | 
				
			||||||
            home-manager.useUserPackages = true;
 | 
					 | 
				
			||||||
            home-manager.users.james = import ./home.nix;
 | 
					 | 
				
			||||||
          }
 | 
					 | 
				
			||||||
          { nixpkgs.overlays = [ nur.overlay (import ./pkgs) ]; }
 | 
					          { nixpkgs.overlays = [ nur.overlay (import ./pkgs) ]; }
 | 
				
			||||||
        ];
 | 
					        ];
 | 
				
			||||||
 | 
					        specialArgs = { inherit home-manager nixos-hardware; };
 | 
				
			||||||
        system = "x86_64-linux";
 | 
					        system = "x86_64-linux";
 | 
				
			||||||
      };
 | 
					      };
 | 
				
			||||||
    };
 | 
					    };
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
							
								
								
									
										34
									
								
								home.nix
									
									
									
									
									
								
							
							
						
						
									
										34
									
								
								home.nix
									
									
									
									
									
								
							| 
						 | 
					@ -1,21 +1,19 @@
 | 
				
			||||||
{ config, pkgs, ... }:
 | 
					{ config, pkgs, ... }: {
 | 
				
			||||||
 | 
					  # # Home Manager needs a bit of information about you and the
 | 
				
			||||||
 | 
					  # # paths it should manage.
 | 
				
			||||||
 | 
					  # home.username = "james";
 | 
				
			||||||
 | 
					  # home.homeDirectory = "/home/james";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
{
 | 
					  # # This value determines the Home Manager release that your
 | 
				
			||||||
  # Home Manager needs a bit of information about you and the
 | 
					  # # configuration is compatible with. This helps avoid breakage
 | 
				
			||||||
  # paths it should manage.
 | 
					  # # when a new Home Manager release introduces backwards
 | 
				
			||||||
  home.username = "james";
 | 
					  # # incompatible changes.
 | 
				
			||||||
  home.homeDirectory = "/home/james";
 | 
					  # #
 | 
				
			||||||
 | 
					  # # You can update Home Manager without changing this value. See
 | 
				
			||||||
 | 
					  # # the Home Manager release notes for a list of state version
 | 
				
			||||||
 | 
					  # # changes in each release.
 | 
				
			||||||
 | 
					  # home.stateVersion = "21.11";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  # This value determines the Home Manager release that your
 | 
					  # # Let Home Manager install and manage itself.
 | 
				
			||||||
  # configuration is compatible with. This helps avoid breakage
 | 
					  # programs.home-manager.enable = true;
 | 
				
			||||||
  # when a new Home Manager release introduces backwards
 | 
					 | 
				
			||||||
  # incompatible changes.
 | 
					 | 
				
			||||||
  #
 | 
					 | 
				
			||||||
  # You can update Home Manager without changing this value. See
 | 
					 | 
				
			||||||
  # the Home Manager release notes for a list of state version
 | 
					 | 
				
			||||||
  # changes in each release.
 | 
					 | 
				
			||||||
  home.stateVersion = "21.11";
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  # Let Home Manager install and manage itself.
 | 
					 | 
				
			||||||
  programs.home-manager.enable = true;
 | 
					 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
							
								
								
									
										24
									
								
								modules/system/homemanager.nix
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										24
									
								
								modules/system/homemanager.nix
									
									
									
									
									
										Normal file
									
								
							| 
						 | 
					@ -0,0 +1,24 @@
 | 
				
			||||||
 | 
					{ config, home-manager, lib, pkgs, ... }: {
 | 
				
			||||||
 | 
					  imports = [ home-manager.nixosModules.home-manager ];
 | 
				
			||||||
 | 
					  home-manager.useGlobalPkgs = true;
 | 
				
			||||||
 | 
					  home-manager.useUserPackages = true;
 | 
				
			||||||
 | 
					  home-manager.users.james = {
 | 
				
			||||||
 | 
					    # Home Manager needs a bit of information about you and the
 | 
				
			||||||
 | 
					    # paths it should manage.
 | 
				
			||||||
 | 
					    home.username = "james";
 | 
				
			||||||
 | 
					    home.homeDirectory = "/home/james";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    # This value determines the Home Manager release that your
 | 
				
			||||||
 | 
					    # configuration is compatible with. This helps avoid breakage
 | 
				
			||||||
 | 
					    # when a new Home Manager release introduces backwards
 | 
				
			||||||
 | 
					    # incompatible changes.
 | 
				
			||||||
 | 
					    #
 | 
				
			||||||
 | 
					    # You can update Home Manager without changing this value. See
 | 
				
			||||||
 | 
					    # the Home Manager release notes for a list of state version
 | 
				
			||||||
 | 
					    # changes in each release.
 | 
				
			||||||
 | 
					    home.stateVersion = "21.11";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    # Let Home Manager install and manage itself.
 | 
				
			||||||
 | 
					    programs.home-manager.enable = true;
 | 
				
			||||||
 | 
					  };
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
		Reference in New Issue
	
	Block a user