[Git] Move into own module
This commit is contained in:
		
							parent
							
								
									25e08f5e2d
								
							
						
					
					
						commit
						2a5bc5c15c
					
				
					 2 changed files with 24 additions and 16 deletions
				
			
		|  | @ -1,5 +1,6 @@ | ||||||
| { | { | ||||||
|   imports = [ |   imports = [ | ||||||
|  |     ./git | ||||||
|     ./mpv |     ./mpv | ||||||
|     ./sops |     ./sops | ||||||
|     ./ssh |     ./ssh | ||||||
|  | @ -12,7 +13,6 @@ | ||||||
|     home.packages = with pkgs; [ |     home.packages = with pkgs; [ | ||||||
|       direnv |       direnv | ||||||
|       duf |       duf | ||||||
|       git-crypt |  | ||||||
|       lynx |       lynx | ||||||
|       nsxiv |       nsxiv | ||||||
|       w3m |       w3m | ||||||
|  | @ -25,21 +25,6 @@ | ||||||
|         enable = true; |         enable = true; | ||||||
|         nix-direnv.enable = true; |         nix-direnv.enable = true; | ||||||
|       }; |       }; | ||||||
| 
 |  | ||||||
|       git = { |  | ||||||
|         enable = true; |  | ||||||
|         userName = "tdpeuter"; |  | ||||||
|         userEmail = "tibo.depeuter@gmail.com"; |  | ||||||
|         extraConfig = { |  | ||||||
|           core.editor = "vim"; |  | ||||||
|         }; |  | ||||||
|         includes = [ |  | ||||||
|           { |  | ||||||
|             path = "~/.gitconfig-ugent"; |  | ||||||
|             condition = "gitdir:~/Nextcloud/Documenten/UGent"; |  | ||||||
|           } |  | ||||||
|         ]; |  | ||||||
|       }; |  | ||||||
|     }; |     }; | ||||||
|   }; |   }; | ||||||
| } | } | ||||||
|  |  | ||||||
							
								
								
									
										23
									
								
								nixos/modules/utils/git/default.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										23
									
								
								nixos/modules/utils/git/default.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,23 @@ | ||||||
|  | { config, lib, pkgs, ... }: | ||||||
|  | 
 | ||||||
|  | { | ||||||
|  |   home-manager.users.tdpeuter = { | ||||||
|  |     programs.git = { | ||||||
|  |       enable = true; | ||||||
|  |       userName = "tdpeuter"; | ||||||
|  |       userEmail = "tibo.depeuter@gmail.com"; | ||||||
|  |       extraConfig = { | ||||||
|  |         core.editor = "vim"; | ||||||
|  |       }; | ||||||
|  |       ignores = [ | ||||||
|  |         "*.swp" | ||||||
|  |       ]; | ||||||
|  |       includes = [ | ||||||
|  |         { | ||||||
|  |           path = "~/.gitconfig-ugent"; | ||||||
|  |           condition = "gitdir:~/Nextcloud/Documenten/UGent"; | ||||||
|  |         } | ||||||
|  |       ]; | ||||||
|  |     }; | ||||||
|  |   }; | ||||||
|  | } | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue