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" = { };
|
|
|
|
"borgbackup/password" = { };
|
|
|
|
"borgbackup/ssh_key" = { };
|
|
|
|
"dyndns/password" = { };
|
|
|
|
"sso/auth-key" = { };
|
|
|
|
"sso/felix/password-hash" = { };
|
|
|
|
"sso/felix/totp-secret" = { };
|
|
|
|
"prowlarr/apikey" = { };
|
|
|
|
"radarr/apikey" = { };
|
|
|
|
"sonarr/apikey" = { };
|
|
|
|
};
|
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-06-04 18:57:43 +02: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-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-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;
|
|
|
|
};
|
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
|
|
|
};
|
|
|
|
}
|