forked from jan-leila/nix-config
		
	added ssh config for local git pushes
This commit is contained in:
		
							parent
							
								
									44d6b4827d
								
							
						
					
					
						commit
						da78b208cd
					
				
					 4 changed files with 42 additions and 5 deletions
				
			
		|  | @ -1,10 +1,12 @@ | |||
| { | ||||
|   lib, | ||||
|   config, | ||||
|   osConfig, | ||||
|   ... | ||||
| }: let | ||||
|   users = config.host.users; | ||||
| in { | ||||
|   leyla = lib.mkIf users.leyla.isNormalUser (import ./leyla); | ||||
|   eve = lib.mkIf users.eve.isNormalUser (import ./eve); | ||||
|   git = lib.mkIf (osConfig.services.forgejo.enable or false) (import ./git); | ||||
| } | ||||
|  |  | |||
							
								
								
									
										20
									
								
								configurations/home-manager/git/default.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								configurations/home-manager/git/default.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,20 @@ | |||
| {osConfig, ...}: { | ||||
|   home = { | ||||
|     username = osConfig.users.users.git.name; | ||||
|     homeDirectory = osConfig.users.users.git.home; | ||||
| 
 | ||||
|     # 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 should not change this value, even if you update Home Manager. If you do | ||||
|     # want to update the value, then make sure to first check the Home Manager | ||||
|     # release notes. | ||||
|     stateVersion = "23.11"; # Please read the comment before changing. | ||||
|   }; | ||||
| 
 | ||||
|   programs.ssh.extraConfig = '' | ||||
|     AuthorizedKeysFile | ||||
|     /var/lib/forgejo/.ssh/authorized_keys | ||||
|   ''; | ||||
| } | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue