made home-manager configs one line in the flake.nix.
This commit is contained in:
		
							parent
							
								
									2360e309d2
								
							
						
					
					
						commit
						02458fec21
					
				
					 3 changed files with 87 additions and 77 deletions
				
			
		
							
								
								
									
										18
									
								
								flake.nix
									
										
									
									
									
								
							
							
						
						
									
										18
									
								
								flake.nix
									
										
									
									
									
								
							| 
						 | 
					@ -53,22 +53,8 @@
 | 
				
			||||||
    # Standalone home-manager configuration entrypoint
 | 
					    # Standalone home-manager configuration entrypoint
 | 
				
			||||||
    # Available through 'home-manager --flake .#your-username@your-hostname'
 | 
					    # Available through 'home-manager --flake .#your-username@your-hostname'
 | 
				
			||||||
    homeConfigurations = {
 | 
					    homeConfigurations = {
 | 
				
			||||||
      "gabe@archlaptop" = home-manager.lib.homeManagerConfiguration {
 | 
					      "gabe@archlaptop" = import ./hosts/gabe-archlaptop.nix {inherit inputs outputs;};
 | 
				
			||||||
        pkgs = nixpkgs.legacyPackages.x86_64-linux; # Home-manager requires 'pkgs' instance
 | 
					      "gabe@gv-workstation" = import ./hosts/gabe-gv-workstation.nix {inherit inputs outputs;};
 | 
				
			||||||
        extraSpecialArgs = {inherit inputs outputs;};
 | 
					 | 
				
			||||||
        modules = [
 | 
					 | 
				
			||||||
          ./hosts/gabe-archlaptop.nix
 | 
					 | 
				
			||||||
          nixvim.homeManagerModules.nixvim
 | 
					 | 
				
			||||||
        ];
 | 
					 | 
				
			||||||
      };
 | 
					 | 
				
			||||||
      "gabe@gv-workstation" = home-manager.lib.homeManagerConfiguration {
 | 
					 | 
				
			||||||
        pkgs = nixpkgs.legacyPackages.x86_64-linux; # Home-manager requires 'pkgs' instance
 | 
					 | 
				
			||||||
        extraSpecialArgs = {inherit inputs outputs;};
 | 
					 | 
				
			||||||
        modules = [
 | 
					 | 
				
			||||||
          ./hosts/gabe-gv-workstation.nix
 | 
					 | 
				
			||||||
          nixvim.homeManagerModules.nixvim
 | 
					 | 
				
			||||||
        ];
 | 
					 | 
				
			||||||
      };
 | 
					 | 
				
			||||||
    };
 | 
					    };
 | 
				
			||||||
  };
 | 
					  };
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,9 +1,18 @@
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
 | 
					  inputs,
 | 
				
			||||||
 | 
					  outputs,
 | 
				
			||||||
 | 
					  ...
 | 
				
			||||||
 | 
					}:
 | 
				
			||||||
 | 
					inputs.home-manager.lib.homeManagerConfiguration {
 | 
				
			||||||
 | 
					  pkgs = inputs.nixpkgs.legacyPackages.x86_64-linux; # Home-manager requires 'pkgs' instance
 | 
				
			||||||
 | 
					  extraSpecialArgs = {inherit inputs outputs;};
 | 
				
			||||||
 | 
					  modules = [
 | 
				
			||||||
 | 
					    ({
 | 
				
			||||||
      config,
 | 
					      config,
 | 
				
			||||||
      pkgs,
 | 
					      pkgs,
 | 
				
			||||||
      lib,
 | 
					      lib,
 | 
				
			||||||
      ...
 | 
					      ...
 | 
				
			||||||
}: {
 | 
					    }: {
 | 
				
			||||||
      # machine specific options
 | 
					      # machine specific options
 | 
				
			||||||
      home = {
 | 
					      home = {
 | 
				
			||||||
        enable-speech = true;
 | 
					        enable-speech = true;
 | 
				
			||||||
| 
						 | 
					@ -32,4 +41,7 @@
 | 
				
			||||||
        ../modules/home-manager/mpd/mpd.nix
 | 
					        ../modules/home-manager/mpd/mpd.nix
 | 
				
			||||||
        ../modules/home-manager/email.nix
 | 
					        ../modules/home-manager/email.nix
 | 
				
			||||||
      ];
 | 
					      ];
 | 
				
			||||||
 | 
					    })
 | 
				
			||||||
 | 
					    inputs.nixvim.homeManagerModules.nixvim
 | 
				
			||||||
 | 
					  ];
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,9 +1,19 @@
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
 | 
					  inputs,
 | 
				
			||||||
 | 
					  outputs,
 | 
				
			||||||
 | 
					  ...
 | 
				
			||||||
 | 
					}:
 | 
				
			||||||
 | 
					inputs.home-manager.lib.homeManagerConfiguration {
 | 
				
			||||||
 | 
					  pkgs = inputs.nixpkgs.legacyPackages.x86_64-linux; # Home-manager requires 'pkgs' instance
 | 
				
			||||||
 | 
					  extraSpecialArgs = {inherit inputs outputs;};
 | 
				
			||||||
 | 
					  modules = [
 | 
				
			||||||
 | 
					    inputs.nixvim.homeManagerModules.nixvim
 | 
				
			||||||
 | 
					    ({
 | 
				
			||||||
      config,
 | 
					      config,
 | 
				
			||||||
      pkgs,
 | 
					      pkgs,
 | 
				
			||||||
      lib,
 | 
					      lib,
 | 
				
			||||||
      ...
 | 
					      ...
 | 
				
			||||||
}: {
 | 
					    }: {
 | 
				
			||||||
      # machine specific options
 | 
					      # machine specific options
 | 
				
			||||||
      home = {
 | 
					      home = {
 | 
				
			||||||
        enable-speech = true;
 | 
					        enable-speech = true;
 | 
				
			||||||
| 
						 | 
					@ -35,4 +45,6 @@
 | 
				
			||||||
        ../modules/home-manager/beets.nix
 | 
					        ../modules/home-manager/beets.nix
 | 
				
			||||||
        ../modules/home-manager/mpd/mpd.nix
 | 
					        ../modules/home-manager/mpd/mpd.nix
 | 
				
			||||||
      ];
 | 
					      ];
 | 
				
			||||||
 | 
					    })
 | 
				
			||||||
 | 
					  ];
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue