[git] Move into proper module
This commit is contained in:
		
							parent
							
								
									1732827367
								
							
						
					
					
						commit
						cb1e9496a9
					
				
					 7 changed files with 27 additions and 28 deletions
				
			
		|  | @ -41,8 +41,9 @@ | |||
|   }; | ||||
| 
 | ||||
|   environment.systemPackages = with pkgs; [ | ||||
|     zenith-nvidia | ||||
|     git | ||||
|     wget | ||||
|     zenith-nvidia | ||||
|   ]; | ||||
| 
 | ||||
|   system.stateVersion = "23.05"; | ||||
|  |  | |||
|  | @ -1,6 +1,5 @@ | |||
| { | ||||
|   imports = [ | ||||
|     ./git | ||||
|     ./sops | ||||
|     ./ssh | ||||
|     ./vim | ||||
|  |  | |||
|  | @ -1,26 +0,0 @@ | |||
| { config, lib, pkgs, ... }: | ||||
| 
 | ||||
| { | ||||
|   home-manager.users.tdpeuter = { | ||||
|     programs.git = { | ||||
|       enable = true; | ||||
|       userName = "Tibo De Peuter"; | ||||
|       userEmail = "tibo.depeuter@gmail.com"; | ||||
|       extraConfig = { | ||||
|         core.editor = "vim"; | ||||
|       }; | ||||
|       ignores = [ | ||||
|         "*.swp" | ||||
|       ]; | ||||
|       includes = [ | ||||
|         { | ||||
|           condition = "gitdir:~/university/"; # Trailing backslash is necessary! | ||||
|           contentSuffix = ".gitconfig"; | ||||
|           contents = { | ||||
|             user.email = "tibo.depeuter@ugent.be"; | ||||
|           }; | ||||
|         } | ||||
|       ]; | ||||
|     }; | ||||
|   }; | ||||
| } | ||||
|  | @ -58,6 +58,10 @@ in { | |||
|             source = ../../../../stow/alacritty/.config/alacritty; | ||||
|           }; | ||||
| 
 | ||||
|           ".config/git" = lib.mkIf (builtins.elem pkgs.git installedPkgs) { | ||||
|             source = ../../../../stow/git/.config/git; | ||||
|           }; | ||||
| 
 | ||||
|           ".config/mpv" = lib.mkIf (builtins.elem pkgs-unstable.mpv installedPkgs) { | ||||
|             source = ../../../../stow/mpv/.config/mpv; | ||||
|           }; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue