disabled all /mnt/pool dependent servers

This commit is contained in:
2024-01-10 11:39:01 -06:00
parent dcc2d9a6c1
commit 0dbf16ac98
5 changed files with 443 additions and 439 deletions

View File

@@ -45,41 +45,41 @@ in {
'')
];
users.groups = { piracy.gid = 985; };
users.users = let base = { isSystemUser = true; };
in {
prowlarr = base // { group = "piracy"; };
kavita = base // {
group = "kavita";
extraGroups = [ "piracy" ];
};
nextcloud = base // {
extraGroups = [ "render" ];
packages = (with pkgs; [
nodejs
(python3.withPackages (ps: with ps; [ tensorflow ]))
perl
(perlPackages.buildPerlPackage rec {
pname = "Image-ExifTool";
version = "12.70";
src = fetchurl {
url = "https://exiftool.org/Image-ExifTool-${version}.tar.gz";
hash = "sha256-TLJSJEXMPj870TkExq6uraX8Wl4kmNerrSlX3LQsr/4=";
};
})
]);
};
};
# users.users = let base = { isSystemUser = true; };
# in {
# # prowlarr = base // { group = "piracy"; };
# # kavita = base // {
# # group = "kavita";
# # extraGroups = [ "piracy" ];
# # };
# # nextcloud = base // {
# # extraGroups = [ "render" ];
# # packages = (with pkgs; [
# # nodejs
# # (python3.withPackages (ps: with ps; [ tensorflow ]))
# # perl
# # (perlPackages.buildPerlPackage rec {
# # pname = "Image-ExifTool";
# # version = "12.70";
# # src = fetchurl {
# # url = "https://exiftool.org/Image-ExifTool-${version}.tar.gz";
# # hash = "sha256-TLJSJEXMPj870TkExq6uraX8Wl4kmNerrSlX3LQsr/4=";
# # };
# # })
# # ]);
# # };
# };
services = let
base = {
enable = true;
group = "piracy";
};
in {
sonarr = base // { package = pkgs.sonarr; };
radarr = base // { package = pkgs.radarr; };
bazarr = base // { };
jellyfin = base // { };
prowlarr.enable = true;
# sonarr = base // { package = pkgs.sonarr; };
# radarr = base // { package = pkgs.radarr; };
# bazarr = base // { };
# jellyfin = base // { };
# prowlarr.enable = true;
microbin = {
enable = true;
settings = {
@@ -92,16 +92,16 @@ in {
MICROBIN_ENCRYPTION_SERVER_SIDE = true;
};
};
audiobookshelf = {
enable = true;
group = "piracy";
port = 5687;
};
# audiobookshelf = {
# enable = true;
# group = "piracy";
# port = 5687;
# };
paperless = {
enable = true;
address = "0.0.0.0";
consumptionDirIsPublic = true;
consumptionDir = "/mnt/pool/home/Scans";
consumptionDir = "/home/jawz/Backups/Scans";
extraConfig = {
PAPERLESS_DBENGINE = "postgress";
PAPERLESS_DBNAME = "paperless";
@@ -134,76 +134,80 @@ in {
LOG_LEVEL = "warn";
};
};
kavita = {
enable = true;
tokenKeyFile = "${pkgs.writeText "kavitaToken"
"Au002BRkRxBjlQrmWSuXWTGUcpXZjzMo2nJ0Z4g4OZ1S4c2zp6oaesGUXzKp2mhvOwjju002BNoURG3CRIE2qnGybvOgAlDxAZCPBzSNRcx6RJ1lFRgvI8wQR6Nd5ivYX0RMo4S8yOH8XIDhzN6vNo31rCjyv2IycX0JqiJPIovfbvXn9Y="}";
};
nextcloud = {
enable = true;
https = true;
package = pkgs.nextcloud27;
appstoreEnable = true;
configureRedis = true;
extraAppsEnable = true;
enableImagemagick = true;
maxUploadSize = "16G";
hostName = "cloud.servidos.lat";
config = {
adminpassFile = "${pkgs.writeText "adminpass"
"Overlying-Hatchback-Charting-Encounter-Deface-Gallantly7"}";
overwriteProtocol = "https";
defaultPhoneRegion = "MX";
dbtype = "pgsql";
dbhost = postgresSocket;
dbtableprefix = "oc_";
dbname = "nextcloud";
trustedProxies = [ "nginx" ];
extraTrustedDomains = [ "cloud.rotehaare.art" "danilo-reyes.com" ];
};
phpOptions = {
catch_workers_output = "yes";
display_errors = "stderr";
error_reporting = "E_ALL & ~E_DEPRECATED & ~E_STRICT";
expose_php = "Off";
"opcache.enable_cli" = "1";
"opcache.fast_shutdown" = "1";
"opcache.interned_strings_buffer" = "16";
"opcache.jit" = "1255";
"opcache.jit_buffer_size" = "256M";
"opcache.max_accelerated_files" = "10000";
"opcache.huge_code_pages" = "1";
"opcache.enable_file_override" = "1";
"opcache.memory_consumption" = "128";
"opcache.revalidate_freq" = "60";
"opcache.save_comments" = "1";
"opcache.validate_timestamps" = "0";
"openssl.cafile" = "/etc/ssl/certs/ca-certificates.crt";
short_open_tag = "Off";
};
extraOptions = {
"allow_local_remote_servers" = true;
mail_smtpmode = "sendmail";
mail_sendmailmode = "pipe";
"installed" = true;
"memories.exiftool" = "/etc/profiles/per-user/nextcloud/bin/exiftool";
enabledPreviewProviders = [
"OC\\Preview\\Image"
"OC\\Preview\\HEIC"
"OC\\Preview\\TIFF"
"OC\\Preview\\MKV"
"OC\\Preview\\MP4"
"OC\\Preview\\AVI"
"OC\\Preview\\Movie"
];
};
phpExtraExtensions = all: [ all.pdlib all.bz2 ];
};
# kavita = {
# enable = true;
# tokenKeyFile = "${pkgs.writeText "kavitaToken"
# "Au002BRkRxBjlQrmWSuXWTGUcpXZjzMo2nJ0Z4g4OZ1S4c2zp6oaesGUXzKp2mhvOwjju002BNoURG3CRIE2qnGybvOgAlDxAZCPBzSNRcx6RJ1lFRgvI8wQR6Nd5ivYX0RMo4S8yOH8XIDhzN6vNo31rCjyv2IycX0JqiJPIovfbvXn9Y="}";
# };
# nextcloud = {
# enable = true;
# https = true;
# package = pkgs.nextcloud27;
# appstoreEnable = true;
# configureRedis = true;
# extraAppsEnable = true;
# enableImagemagick = true;
# maxUploadSize = "16G";
# hostName = "cloud.servidos.lat";
# config = {
# adminpassFile = "${pkgs.writeText "adminpass"
# "Overlying-Hatchback-Charting-Encounter-Deface-Gallantly7"}";
# overwriteProtocol = "https";
# defaultPhoneRegion = "MX";
# dbtype = "pgsql";
# dbhost = postgresSocket;
# dbtableprefix = "oc_";
# dbname = "nextcloud";
# trustedProxies = [ "nginx" ];
# extraTrustedDomains = [ "cloud.rotehaare.art" "danilo-reyes.com" ];
# };
# phpOptions = {
# catch_workers_output = "yes";
# display_errors = "stderr";
# error_reporting = "E_ALL & ~E_DEPRECATED & ~E_STRICT";
# expose_php = "Off";
# "opcache.enable_cli" = "1";
# "opcache.fast_shutdown" = "1";
# "opcache.interned_strings_buffer" = "16";
# "opcache.jit" = "1255";
# "opcache.jit_buffer_size" = "256M";
# "opcache.max_accelerated_files" = "10000";
# "opcache.huge_code_pages" = "1";
# "opcache.enable_file_override" = "1";
# "opcache.memory_consumption" = "128";
# "opcache.revalidate_freq" = "60";
# "opcache.save_comments" = "1";
# "opcache.validate_timestamps" = "0";
# "openssl.cafile" = "/etc/ssl/certs/ca-certificates.crt";
# short_open_tag = "Off";
# };
# extraOptions = {
# "allow_local_remote_servers" = true;
# mail_smtpmode = "sendmail";
# mail_sendmailmode = "pipe";
# "installed" = true;
# "memories.exiftool" = "/etc/profiles/per-user/nextcloud/bin/exiftool";
# enabledPreviewProviders = [
# "OC\\Preview\\Image"
# "OC\\Preview\\HEIC"
# "OC\\Preview\\TIFF"
# "OC\\Preview\\MKV"
# "OC\\Preview\\MP4"
# "OC\\Preview\\AVI"
# "OC\\Preview\\Movie"
# ];
# };
# phpExtraExtensions = all: [ all.pdlib all.bz2 ];
# };
postgresql = {
enable = true;
ensureDatabases = [ "paperless" "nextcloud" "ryot" "vaultwarden" ];
ensureDatabases = [ "jawz" "paperless" "nextcloud" "ryot" "vaultwarden" ];
package = pkgs.postgresql_16;
ensureUsers = [
{
name = "jawz";
ensureDBOwnership = true;
}
{
name = "nextcloud";
ensureDBOwnership = true;
@@ -245,12 +249,12 @@ in {
};
};
timers = {
nextcloud-cronjob = {
enable = true;
description = "Runs various nextcloud-related cronjobs";
wantedBy = [ "timers.target" ];
timerConfig = { OnCalendar = "*:0/10"; };
};
# nextcloud-cronjob = {
# enable = true;
# description = "Runs various nextcloud-related cronjobs";
# wantedBy = [ "timers.target" ];
# timerConfig = { OnCalendar = "*:0/10"; };
# };
};
user.services = {
update-dns = let