I should check what files look like vefore I commit them

This commit is contained in:
baduhai 2023-01-06 16:58:15 -03:00
parent f3b70219c2
commit b3a3b7ee75

View file

@ -1,124 +1,71 @@
{ specialArgs, inputs, config, pkgs, lib, ... }: { specialArgs, inputs, config, pkgs, lib, ... }:
{ {
age.secrets = { virtualisation = {
paperless-pass = { docker.enable = true;
file = ../../../../secrets/paperless-pass.age; oci-containers = {
owner = "paperless"; backend = "docker";
group = "hosted"; containers = {
}; "cinny" = {
}; image = "ghcr.io/cinnyapp/cinny:latest";
ports = [
services = { "${config.ports.cinny}:80"
bazarr = { ];
enable = true; extraOptions = [
user = "user"; "--pull=always"
group = "hosted"; ];
}; };
"librespeed" = {
changedetection-io = { image = "lscr.io/linuxserver/librespeed:latest";
enable = true; environment = {
group = "hosted"; TZ = "America/Bahia";
behindProxy = true; };
datastorePath = "/data/changedetection"; ports = [
port = lib.toInt "${config.ports.changedetection-io}"; "${config.ports.librespeed}:80"
baseURL = "https://detect.baduhai.me"; ];
}; extraOptions = [
"--pull=always"
jackett.enable = true; ];
};
jellyfin = { "syncthing" = {
enable = true; image = "lscr.io/linuxserver/syncthing:1.20.4";
user = "user"; environment = {
group = "hosted"; PUID = "1000";
}; PGID = "100";
TZ = "America/Bahia";
minecraft-server = { };
enable = true; volumes = [
eula = true; "/data/syncthing/config:/config"
declarative = true; "/data/syncthing/data1:/data1"
openFirewall = true; "/data/syncthing/data2:/data2"
package = pkgs.papermc; "/data/syncthing/notes:/sync/notes"
serverProperties = { ];
motd = "Bem-vindo a Alexandria"; ports = [
difficulty = "hard"; "${config.ports.syncthing}:8384"
gamemode = "survival"; "22000:22000"
}; "21027:21027/udp"
dataDir = "/data/minecraft"; ];
}; extraOptions = [
"--pull=always"
n8n.enable = true; ];
};
nginx = { "whoogle" = {
enable = true; image = "benbusby/whoogle-search:latest";
group = "hosted"; environment = {
recommendedGzipSettings = true; HTTPS_ONLY = "1";
recommendedOptimisation = true; WHOOGLE_CONFIG_DISABLE = "1";
recommendedProxySettings = true; WHOOGLE_CONFIG_LANGUAGE = "lang_en";
recommendedTlsSettings = true; WHOOGLE_CONFIG_THEME = "system";
virtualHosts = { WHOOGLE_CONFIG_VIEW_IMAGE = "1";
"baduhai.me" = { useACMEHost = "baduhai.me"; forceSSL = true; kTLS = true; root = inputs.homepage; }; WHOOGLE_CONFIG_GET_ONLY = "1";
"bazarr.baduhai.me" = { useACMEHost = "baduhai.me"; forceSSL = true; kTLS = true; locations."/".proxyPass = "http://127.0.0.1:${config.ports.bazaar}"; }; };
"bitwarden.baduhai.me" = { useACMEHost = "baduhai.me"; forceSSL = true; kTLS = true; locations."/".proxyPass = "http://127.0.0.1:${config.ports.vaultwarden}"; }; ports = [
"cinny.baduhai.me" = { useACMEHost = "baduhai.me"; forceSSL = true; kTLS = true; locations."/".proxyPass = "http://127.0.0.1:${config.ports.cinny}"; }; "${config.ports.whoogle}:5000"
"detect.baduhai.me" = { useACMEHost = "baduhai.me"; forceSSL = true; kTLS = true; locations."/".proxyPass = "http://127.0.0.1:${config.ports.changedetection-io}"; }; ];
"jackett.baduhai.me" = { useACMEHost = "baduhai.me"; forceSSL = true; kTLS = true; locations."/".proxyPass = "http://127.0.0.1:${config.ports.jackett}"; }; extraOptions = [
"jellyfin.baduhai.me" = { useACMEHost = "baduhai.me"; forceSSL = true; kTLS = true; locations."/".proxyPass = "http://127.0.0.1:${config.ports.jellyfin}"; }; "--pull=always"
"librespeed.baduhai.me" = { useACMEHost = "baduhai.me"; forceSSL = true; kTLS = true; locations."/".proxyPass = "http://127.0.0.1:${config.ports.librespeed}"; }; ];
"n8n.baduhai.me" = { useACMEHost = "baduhai.me"; forceSSL = true; kTLS = true; locations."/".proxyPass = "http://127.0.0.1:${config.ports.n8n}"; }; };
"paperless.baduhai.me" = { useACMEHost = "baduhai.me"; forceSSL = true; kTLS = true; locations."/".proxyPass = "http://127.0.0.1:${config.ports.paperless}"; };
"qbittorrent.baduhai.me" = { useACMEHost = "baduhai.me"; forceSSL = true; kTLS = true; locations."/".proxyPass = "http://127.0.0.1:${config.ports.qbittorrent}"; };
"radarr.baduhai.me" = { useACMEHost = "baduhai.me"; forceSSL = true; kTLS = true; locations."/".proxyPass = "http://127.0.0.1:${config.ports.radarr}"; };
"shiori.baduhai.me" = { useACMEHost = "baduhai.me"; forceSSL = true; kTLS = true; locations."/".proxyPass = "http://127.0.0.1:${config.ports.shiori}"; };
"sonarr.baduhai.me" = { useACMEHost = "baduhai.me"; forceSSL = true; kTLS = true; locations."/".proxyPass = "http://127.0.0.1:${config.ports.sonarr}"; };
"sync.baduhai.me" = { useACMEHost = "baduhai.me"; forceSSL = true; kTLS = true; locations."/".proxyPass = "http://127.0.0.1:${config.ports.syncthing}"; };
"whoogle.baduhai.me" = { useACMEHost = "baduhai.me"; forceSSL = true; kTLS = true; locations."/".proxyPass = "http://127.0.0.1:${config.ports.whoogle}"; };
};
};
paperless = {
enable = true;
dataDir = "/data/paperless/data";
mediaDir = "/data/paperless/media";
passwordFile = config.age.secrets.paperless-pass.path;
port = lib.toInt "${config.ports.paperless}";
consumptionDirIsPublic = true;
extraConfig = {
PAPERLESS_OCR_LANGUAGE = "eng+por+deu";
};
};
qbittorrent = {
enable = true;
user = "user";
group = "hosted";
port = lib.toInt "${config.ports.qbittorrent}";
};
radarr = {
enable = true;
user = "user";
group = "hosted";
};
shiori = {
enable = true;
port = lib.toInt "${config.ports.shiori}";
};
sonarr = {
enable = true;
user = "user";
group = "hosted";
};
vaultwarden = {
enable = true;
config = {
DOMAIN = "https://bitwarden.baduhai.me";
SIGNUPS_ALLOWED = false;
ROCKET_ADDRESS = "127.0.0.1";
ROCKET_PORT = "${config.ports.vaultwarden}";
}; };
}; };
}; };