broke apart home laptop and desktop config.
This commit is contained in:
		
							parent
							
								
									225ce6f064
								
							
						
					
					
						commit
						513f4eb518
					
				
					 5 changed files with 56 additions and 2 deletions
				
			
		| 
						 | 
					@ -96,7 +96,7 @@
 | 
				
			||||||
    # 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" = import ./hosts/home-personal.nix {inherit inputs configLib;};
 | 
					      "gabe@archlaptop" = import ./hosts/home-laptop.nix {inherit inputs configLib;};
 | 
				
			||||||
      "gabe@linuxgamingrig" = import ./hosts/home-personal.nix {inherit inputs configLib;};
 | 
					      "gabe@linuxgamingrig" = import ./hosts/home-personal.nix {inherit inputs configLib;};
 | 
				
			||||||
      "gabe@gv-workstation" = import ./hosts/home-workstation.nix {inherit inputs configLib;};
 | 
					      "gabe@gv-workstation" = import ./hosts/home-workstation.nix {inherit inputs configLib;};
 | 
				
			||||||
      "gabe@gv-ubuntu" = import ./hosts/home-workstation.nix {inherit inputs configLib;};
 | 
					      "gabe@gv-ubuntu" = import ./hosts/home-workstation.nix {inherit inputs configLib;};
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
							
								
								
									
										53
									
								
								hosts/home-laptop.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										53
									
								
								hosts/home-laptop.nix
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
					@ -0,0 +1,53 @@
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					  inputs,
 | 
				
			||||||
 | 
					  configLib,
 | 
				
			||||||
 | 
					  ...
 | 
				
			||||||
 | 
					}:
 | 
				
			||||||
 | 
					inputs.home-manager.lib.homeManagerConfiguration {
 | 
				
			||||||
 | 
					  pkgs = inputs.nixpkgs.legacyPackages.x86_64-linux; # Home-manager requires 'pkgs' instance
 | 
				
			||||||
 | 
					  extraSpecialArgs = {inherit inputs configLib;};
 | 
				
			||||||
 | 
					  modules = [
 | 
				
			||||||
 | 
					    ({
 | 
				
			||||||
 | 
					      config,
 | 
				
			||||||
 | 
					      pkgs,
 | 
				
			||||||
 | 
					      lib,
 | 
				
			||||||
 | 
					      configLib,
 | 
				
			||||||
 | 
					      ...
 | 
				
			||||||
 | 
					    }: {
 | 
				
			||||||
 | 
					      # machine specific options
 | 
				
			||||||
 | 
					      user = {
 | 
				
			||||||
 | 
					        enable-speech = true;
 | 
				
			||||||
 | 
					        git = {
 | 
				
			||||||
 | 
					          profile = {
 | 
				
			||||||
 | 
					            name = "Gabe Venberg";
 | 
				
			||||||
 | 
					            email = "gabevenberg@gmail.com";
 | 
				
			||||||
 | 
					          };
 | 
				
			||||||
 | 
					          workProfile.enable = false;
 | 
				
			||||||
 | 
					        };
 | 
				
			||||||
 | 
					      };
 | 
				
			||||||
 | 
					      host.isLaptop = true;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      targets.genericLinux.enable = true;
 | 
				
			||||||
 | 
					      home.username = "gabe";
 | 
				
			||||||
 | 
					      home.homeDirectory = /home/gabe;
 | 
				
			||||||
 | 
					      imports = [
 | 
				
			||||||
 | 
					        ../roles/home-manager/terminal.nix
 | 
				
			||||||
 | 
					        ../roles/home-manager/music.nix
 | 
				
			||||||
 | 
					        ../configs/home-manager/common.nix
 | 
				
			||||||
 | 
					        ../configs/home-manager/syncthing.nix
 | 
				
			||||||
 | 
					        ../configs/home-manager/email.nix
 | 
				
			||||||
 | 
					        ../configs/home-manager/tiny-irc.nix
 | 
				
			||||||
 | 
					        ../configs/home-manager/secrets.nix
 | 
				
			||||||
 | 
					        inputs.sops-nix.homeManagerModules.sops
 | 
				
			||||||
 | 
					      ];
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      sops = lib.mkIf (inputs ? nix-secrets) {
 | 
				
			||||||
 | 
					        secrets = {
 | 
				
			||||||
 | 
					          gmail-password.sopsFile = "${inputs.nix-secrets}/workstations.yaml";
 | 
				
			||||||
 | 
					          irc-cert.sopsFile = "${inputs.nix-secrets}/workstations.yaml";
 | 
				
			||||||
 | 
					        };
 | 
				
			||||||
 | 
					      };
 | 
				
			||||||
 | 
					    })
 | 
				
			||||||
 | 
					    inputs.nixvim.homeManagerModules.nixvim
 | 
				
			||||||
 | 
					  ];
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
| 
						 | 
					@ -25,7 +25,6 @@ inputs.home-manager.lib.homeManagerConfiguration {
 | 
				
			||||||
          workProfile.enable = false;
 | 
					          workProfile.enable = false;
 | 
				
			||||||
        };
 | 
					        };
 | 
				
			||||||
      };
 | 
					      };
 | 
				
			||||||
      host.isLaptop = true;
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
      targets.genericLinux.enable = true;
 | 
					      targets.genericLinux.enable = true;
 | 
				
			||||||
      home.username = "gabe";
 | 
					      home.username = "gabe";
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -41,6 +41,7 @@ inputs.home-manager.lib.homeManagerConfiguration {
 | 
				
			||||||
        ../configs/home-manager/common.nix
 | 
					        ../configs/home-manager/common.nix
 | 
				
			||||||
        ../configs/home-manager/syncthing.nix
 | 
					        ../configs/home-manager/syncthing.nix
 | 
				
			||||||
        ../configs/home-manager/tiny-irc.nix
 | 
					        ../configs/home-manager/tiny-irc.nix
 | 
				
			||||||
 | 
					        ../roles/home-manager/music.nix
 | 
				
			||||||
        ../configs/home-manager/secrets.nix
 | 
					        ../configs/home-manager/secrets.nix
 | 
				
			||||||
        inputs.sops-nix.homeManagerModules.sops
 | 
					        inputs.sops-nix.homeManagerModules.sops
 | 
				
			||||||
      ];
 | 
					      ];
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -21,6 +21,7 @@
 | 
				
			||||||
    tre-command
 | 
					    tre-command
 | 
				
			||||||
    diskonaut
 | 
					    diskonaut
 | 
				
			||||||
    hyperfine
 | 
					    hyperfine
 | 
				
			||||||
 | 
					    fclones
 | 
				
			||||||
  ];
 | 
					  ];
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  programs = {
 | 
					  programs = {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue