[SSH] Add H4Git key
This commit is contained in:
		
							parent
							
								
									2bdf81e6be
								
							
						
					
					
						commit
						25f78907ea
					
				
					 3 changed files with 53 additions and 13 deletions
				
			
		|  | @ -16,21 +16,29 @@ | |||
|       # Generate new keys if the key specified above does not exist | ||||
|       # generateKey = true; | ||||
|     }; | ||||
|     secrets = { | ||||
|       "H4G0/ssh" = { | ||||
|         format = "yaml"; | ||||
|         sopsFile = ../../../secrets/H4G0.yaml; | ||||
|         owner = config.users.users.tdpeuter.name; | ||||
|       }; | ||||
|     secrets = | ||||
|       let | ||||
|         user = config.users.users.tdpeuter.name; | ||||
|       in { | ||||
|       "GitHub/ssh" = { | ||||
|         format = "yaml"; | ||||
|         sopsFile = ../../../secrets/GitHub.yaml; | ||||
|         owner = config.users.users.tdpeuter.name; | ||||
|         owner = user; | ||||
|       }; | ||||
|       "GitHub-UGent/ssh" = { | ||||
|         format = "yaml"; | ||||
|         sopsFile = ../../../secrets/GitHub-UGent.yaml; | ||||
|         owner = config.users.users.tdpeuter.name; | ||||
|         owner = user; | ||||
|       }; | ||||
|       "H4G0/ssh" = { | ||||
|         format = "yaml"; | ||||
|         sopsFile = ../../../secrets/H4G0.yaml; | ||||
|         owner = user; | ||||
|       }; | ||||
|       "H4Git/ssh" = { | ||||
|         format = "yaml"; | ||||
|         sopsFile = ../../../secrets/H4Git.yaml; | ||||
|         owner = user; | ||||
|       }; | ||||
|     }; | ||||
|   }; | ||||
|  |  | |||
|  | @ -1,11 +1,6 @@ | |||
| { config, lib, pkgs, ... }: | ||||
| 
 | ||||
| { | ||||
|   services.openssh = { | ||||
|     enable = true; | ||||
|     settings.PasswordAuthentication = false; | ||||
|   }; | ||||
| 
 | ||||
|   home-manager.users.tdpeuter = { | ||||
|     programs.ssh = { | ||||
|       enable = true; | ||||
|  | @ -28,6 +23,12 @@ | |||
|           identityFile = "/run/secrets/GitHub-UGent/ssh"; | ||||
|           user = "tdpeuter"; | ||||
|         }; | ||||
|         "git.depeuter.dev" = { | ||||
|           hostname = "git.depeuter.dev"; | ||||
|           identitiesOnly = true; | ||||
|           identityFile = "/run/secrets/H4Git/ssh"; | ||||
|           user = "tdpeuter"; | ||||
|         }; | ||||
|       }; | ||||
|     }; | ||||
|   }; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue