| 
									
										
										
										
											2022-11-29 18:45:37 +01:00
										 |  |  | # Deployed services | 
					
						
							| 
									
										
										
										
											2023-11-07 22:00:00 +01:00
										 |  |  | { config, ... }: | 
					
						
							| 
									
										
										
										
											2022-11-29 18:45:37 +01:00
										 |  |  | let | 
					
						
							| 
									
										
										
										
											2023-11-07 23:13:51 +01:00
										 |  |  |   inherit (config.sops) secrets; | 
					
						
							| 
									
										
										
										
											2022-11-29 18:45:37 +01:00
										 |  |  | in | 
					
						
							|  |  |  | { | 
					
						
							| 
									
										
										
										
											2023-11-12 23:36:30 +01:00
										 |  |  |   sops.secrets = { | 
					
						
							|  |  |  |     "acme/inwx" = { }; | 
					
						
							| 
									
										
										
										
											2023-11-30 23:36:03 +01:00
										 |  |  |     "bazarr/apikey" = { }; | 
					
						
							| 
									
										
										
										
											2023-11-12 23:36:30 +01:00
										 |  |  |     "borgbackup/password" = { }; | 
					
						
							|  |  |  |     "borgbackup/ssh_key" = { }; | 
					
						
							| 
									
										
										
										
											2024-10-22 23:04:59 +02:00
										 |  |  |     "dyndns/password" = { | 
					
						
							|  |  |  |       owner = config.users.users.inadyn.name; | 
					
						
							|  |  |  |     }; | 
					
						
							| 
									
										
										
										
											2024-11-07 22:58:22 +01:00
										 |  |  |     "fritzbox/password" = { | 
					
						
							|  |  |  |       owner = config.users.users.fritz-exporter.name; | 
					
						
							|  |  |  |     }; | 
					
						
							| 
									
										
										
										
											2023-11-12 23:36:30 +01:00
										 |  |  |     "prowlarr/apikey" = { }; | 
					
						
							|  |  |  |     "radarr/apikey" = { }; | 
					
						
							|  |  |  |     "sonarr/apikey" = { }; | 
					
						
							| 
									
										
										
										
											2023-11-30 23:36:03 +01:00
										 |  |  |     "sso/auth-key" = { }; | 
					
						
							|  |  |  |     "sso/felix/password-hash" = { }; | 
					
						
							|  |  |  |     "sso/felix/totp-secret" = { }; | 
					
						
							| 
									
										
										
										
											2023-11-12 23:36:30 +01:00
										 |  |  |   }; | 
					
						
							| 
									
										
										
										
											2022-12-04 18:06:51 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-11-29 18:45:37 +01:00
										 |  |  |   # List services that you want to enable: | 
					
						
							|  |  |  |   my.services = { | 
					
						
							| 
									
										
										
										
											2022-12-04 18:06:51 +01:00
										 |  |  |     backup = { | 
					
						
							|  |  |  |       enable = true; | 
					
						
							|  |  |  |       OnFailureMail = "server@buehler.rocks"; | 
					
						
							|  |  |  |       passwordFile = secrets."borgbackup/password".path; | 
					
						
							| 
									
										
										
										
											2023-02-05 19:04:16 +01:00
										 |  |  |       sshKeyFile = secrets."borgbackup/ssh_key".path; | 
					
						
							| 
									
										
										
										
											2023-09-05 22:45:08 +02:00
										 |  |  |       paths = [ "/" ]; | 
					
						
							| 
									
										
										
										
											2022-12-04 18:06:51 +01:00
										 |  |  |     }; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-12-15 00:35:01 +01:00
										 |  |  |     dyndns = { | 
					
						
							|  |  |  |       enable = true; | 
					
						
							|  |  |  |       passwordFile = secrets."dyndns/password".path; | 
					
						
							|  |  |  |     }; | 
					
						
							| 
									
										
										
										
											2023-06-04 17:17:35 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-09-05 22:22:34 +02:00
										 |  |  |     # aria2 = { | 
					
						
							|  |  |  |     #   enable = true; | 
					
						
							|  |  |  |     #   downloadDir = "/data/tmp/aria2/"; | 
					
						
							|  |  |  |     # }; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-11-26 16:28:59 +01:00
										 |  |  |     home-automation = { | 
					
						
							| 
									
										
										
										
											2023-11-20 21:49:05 +01:00
										 |  |  |       enable = true; | 
					
						
							|  |  |  |     }; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-06-04 21:08:37 +02:00
										 |  |  |     blocky = { | 
					
						
							|  |  |  |       enable = true; | 
					
						
							|  |  |  |     }; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-03-15 22:36:29 +01:00
										 |  |  |     prowlarr = { | 
					
						
							|  |  |  |       enable = true; | 
					
						
							| 
									
										
										
										
											2023-07-25 22:20:49 +02:00
										 |  |  |       apiKeyFile = secrets."prowlarr/apikey".path; | 
					
						
							| 
									
										
										
										
											2023-03-15 22:36:29 +01:00
										 |  |  |     }; | 
					
						
							| 
									
										
										
										
											2023-03-15 22:35:46 +01:00
										 |  |  |     radarr = { | 
					
						
							|  |  |  |       enable = true; | 
					
						
							| 
									
										
										
										
											2023-07-25 22:20:49 +02:00
										 |  |  |       apiKeyFile = secrets."radarr/apikey".path; | 
					
						
							| 
									
										
										
										
											2023-03-15 22:35:46 +01:00
										 |  |  |     }; | 
					
						
							| 
									
										
										
										
											2023-03-15 22:34:36 +01:00
										 |  |  |     sonarr = { | 
					
						
							|  |  |  |       enable = true; | 
					
						
							| 
									
										
										
										
											2023-07-25 22:20:49 +02:00
										 |  |  |       apiKeyFile = secrets."sonarr/apikey".path; | 
					
						
							| 
									
										
										
										
											2023-03-15 22:34:36 +01:00
										 |  |  |     }; | 
					
						
							| 
									
										
										
										
											2023-03-15 22:37:27 +01:00
										 |  |  |     bazarr = { | 
					
						
							|  |  |  |       enable = true; | 
					
						
							| 
									
										
										
										
											2023-11-30 23:36:03 +01:00
										 |  |  |       apiKeyFile = secrets."bazarr/apikey".path; | 
					
						
							| 
									
										
										
										
											2023-03-15 22:37:27 +01:00
										 |  |  |     }; | 
					
						
							| 
									
										
										
										
											2023-03-15 22:34:36 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-11-29 18:45:37 +01:00
										 |  |  |     ssh-server = { | 
					
						
							|  |  |  |       enable = true; | 
					
						
							|  |  |  |     }; | 
					
						
							| 
									
										
										
										
											2022-11-30 13:41:31 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  |     jellyfin = { | 
					
						
							|  |  |  |       enable = true; | 
					
						
							|  |  |  |     }; | 
					
						
							| 
									
										
										
										
											2023-06-04 18:57:43 +02:00
										 |  |  |     jellyseerr = { | 
					
						
							|  |  |  |       enable = true; | 
					
						
							|  |  |  |     }; | 
					
						
							| 
									
										
										
										
											2024-11-07 22:58:22 +01:00
										 |  |  |     fritzbox = { | 
					
						
							|  |  |  |       enable = true; | 
					
						
							|  |  |  |       passwordFile = secrets."fritzbox/password".path; | 
					
						
							|  |  |  |     }; | 
					
						
							| 
									
										
										
										
											2023-02-23 20:02:46 +01:00
										 |  |  |     # Dashboard | 
					
						
							|  |  |  |     homer = { | 
					
						
							|  |  |  |       enable = true; | 
					
						
							|  |  |  |     }; | 
					
						
							|  |  |  |     # Webserver | 
					
						
							|  |  |  |     nginx = { | 
					
						
							|  |  |  |       enable = true; | 
					
						
							|  |  |  |       acme = { | 
					
						
							|  |  |  |         credentialsFile = secrets."acme/inwx".path; | 
					
						
							|  |  |  |       }; | 
					
						
							|  |  |  |       sso = { | 
					
						
							|  |  |  |         authKeyFile = secrets."sso/auth-key".path; | 
					
						
							|  |  |  |         users = { | 
					
						
							|  |  |  |           felix = { | 
					
						
							|  |  |  |             passwordHashFile = secrets."sso/felix/password-hash".path; | 
					
						
							|  |  |  |             totpSecretFile = secrets."sso/felix/totp-secret".path; | 
					
						
							|  |  |  |           }; | 
					
						
							|  |  |  |         }; | 
					
						
							|  |  |  |         groups = { | 
					
						
							|  |  |  |           root = [ "felix" ]; | 
					
						
							|  |  |  |         }; | 
					
						
							|  |  |  |       }; | 
					
						
							|  |  |  |     }; | 
					
						
							| 
									
										
										
										
											2022-11-29 18:45:37 +01:00
										 |  |  |   }; | 
					
						
							|  |  |  | } |