adjusted formatting of containers
This commit is contained in:
parent
ffbc449c4a
commit
91650b3263
@ -9,34 +9,32 @@ in {
|
|||||||
};
|
};
|
||||||
config = lib.mkIf config.my.servers.flame.enable {
|
config = lib.mkIf config.my.servers.flame.enable {
|
||||||
sops.secrets.flame.sopsFile = ../../secrets/env.yaml;
|
sops.secrets.flame.sopsFile = ../../secrets/env.yaml;
|
||||||
virtualisation.oci-containers = {
|
virtualisation.oci-containers.containers = {
|
||||||
containers = {
|
flame = {
|
||||||
flame = {
|
autoStart = true;
|
||||||
autoStart = true;
|
image = "pawelmalak/flame";
|
||||||
image = "pawelmalak/flame";
|
ports = [ "${toString port}:${toString port}" ];
|
||||||
ports = [ "${toString port}:${toString port}" ];
|
volumes = [
|
||||||
volumes = [
|
"${config.my.containerData}/flame:/app/data"
|
||||||
"${config.my.containerData}/flame:/app/data"
|
"${config.my.containerSocket}:${config.my.containerSocket}"
|
||||||
"${config.my.containerSocket}:${config.my.containerSocket}"
|
];
|
||||||
];
|
environmentFiles = [ config.sops.secrets.flame.path ];
|
||||||
environmentFiles = [ config.sops.secrets.flame.path ];
|
environment = {
|
||||||
environment = {
|
TZ = "America/Mexico_City";
|
||||||
TZ = "America/Mexico_City";
|
PUID = "1000";
|
||||||
PUID = "1000";
|
PGID = "100";
|
||||||
PGID = "100";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
flame-nsfw = {
|
};
|
||||||
autoStart = true;
|
flame-nsfw = {
|
||||||
image = "pawelmalak/flame";
|
autoStart = true;
|
||||||
ports = [ "${toString portSecret}:${toString port}" ];
|
image = "pawelmalak/flame";
|
||||||
volumes = [ "${config.my.containerData}/flame-nsfw:/app/data" ];
|
ports = [ "${toString portSecret}:${toString port}" ];
|
||||||
environmentFiles = [ config.sops.secrets.flame.path ];
|
volumes = [ "${config.my.containerData}/flame-nsfw:/app/data" ];
|
||||||
environment = {
|
environmentFiles = [ config.sops.secrets.flame.path ];
|
||||||
TZ = "America/Mexico_City";
|
environment = {
|
||||||
PUID = "1000";
|
TZ = "America/Mexico_City";
|
||||||
PGID = "100";
|
PUID = "1000";
|
||||||
};
|
PGID = "100";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@ -5,30 +5,28 @@ let
|
|||||||
in {
|
in {
|
||||||
options.my.servers.lidarr.enable = lib.mkEnableOption "enable";
|
options.my.servers.lidarr.enable = lib.mkEnableOption "enable";
|
||||||
config = lib.mkIf config.my.servers.lidarr.enable {
|
config = lib.mkIf config.my.servers.lidarr.enable {
|
||||||
virtualisation.oci-containers = {
|
virtualisation.oci-containers.containers.lidarr = {
|
||||||
containers.lidarr = {
|
autoStart = true;
|
||||||
autoStart = true;
|
image = "lscr.io/linuxserver/lidarr:latest";
|
||||||
image = "lscr.io/linuxserver/lidarr:latest";
|
ports = [ "${toString port}:${toString port}" ];
|
||||||
ports = [ "${toString port}:${toString port}" ];
|
environment = {
|
||||||
environment = {
|
TZ = "America/Mexico_City";
|
||||||
TZ = "America/Mexico_City";
|
PUID = "1000";
|
||||||
PUID = "1000";
|
PGID = "100";
|
||||||
PGID = "100";
|
};
|
||||||
};
|
volumes = [
|
||||||
volumes = [
|
"/mnt/pool/multimedia:/data"
|
||||||
"/mnt/pool/multimedia:/data"
|
"/mnt/pool/multimedia/media/Music:/music"
|
||||||
"/mnt/pool/multimedia/media/Music:/music"
|
"/mnt/pool/multimedia/media/MusicVideos:/music-videos"
|
||||||
"/mnt/pool/multimedia/media/MusicVideos:/music-videos"
|
"${config.my.containerData}/lidarr/files:/config"
|
||||||
"${config.my.containerData}/lidarr/files:/config"
|
"${config.my.containerData}/lidarr/custom-services.d:/custom-services.d"
|
||||||
"${config.my.containerData}/lidarr/custom-services.d:/custom-services.d"
|
"${config.my.containerData}/lidarr/custom-cont-init.d:/custom-cont-init.d"
|
||||||
"${config.my.containerData}/lidarr/custom-cont-init.d:/custom-cont-init.d"
|
];
|
||||||
];
|
labels = {
|
||||||
labels = {
|
"flame.type" = "application";
|
||||||
"flame.type" = "application";
|
"flame.name" = "Lidarr";
|
||||||
"flame.name" = "Lidarr";
|
"flame.url" = url;
|
||||||
"flame.url" = url;
|
"flame.icon" = "music";
|
||||||
"flame.icon" = "music";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
services = {
|
services = {
|
||||||
|
|||||||
@ -6,26 +6,24 @@ in {
|
|||||||
options.my.servers.maloja.enable = lib.mkEnableOption "enable";
|
options.my.servers.maloja.enable = lib.mkEnableOption "enable";
|
||||||
config = lib.mkIf config.my.servers.maloja.enable {
|
config = lib.mkIf config.my.servers.maloja.enable {
|
||||||
sops.secrets.maloja.sopsFile = ../../secrets/env.yaml;
|
sops.secrets.maloja.sopsFile = ../../secrets/env.yaml;
|
||||||
virtualisation.oci-containers = {
|
virtualisation.oci-containers.containers.maloja = {
|
||||||
containers.maloja = {
|
image = "krateng/maloja";
|
||||||
image = "krateng/maloja";
|
ports = [ "${toString port}:${toString port}" ];
|
||||||
ports = [ "${toString port}:${toString port}" ];
|
environmentFiles = [ config.sops.secrets.maloja.path ];
|
||||||
environmentFiles = [ config.sops.secrets.maloja.path ];
|
environment = {
|
||||||
environment = {
|
TZ = "America/Mexico_City";
|
||||||
TZ = "America/Mexico_City";
|
MALOJA_TIMEZONE = "-6";
|
||||||
MALOJA_TIMEZONE = "-6";
|
PUID = "1000";
|
||||||
PUID = "1000";
|
PGID = "100";
|
||||||
PGID = "100";
|
MALOJA_DATA_DIRECTORY = "/mljdata";
|
||||||
MALOJA_DATA_DIRECTORY = "/mljdata";
|
MALOJA_SKIP_SETUP = "true";
|
||||||
MALOJA_SKIP_SETUP = "true";
|
};
|
||||||
};
|
volumes = [ "${config.my.containerData}/maloja:/mljdata" ];
|
||||||
volumes = [ "${config.my.containerData}/maloja:/mljdata" ];
|
labels = {
|
||||||
labels = {
|
"flame.type" = "application";
|
||||||
"flame.type" = "application";
|
"flame.name" = "Maloja";
|
||||||
"flame.name" = "Maloja";
|
"flame.url" = url;
|
||||||
"flame.url" = url;
|
"flame.icon" = "bookmark-music";
|
||||||
"flame.icon" = "bookmark-music";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
services.nginx = {
|
services.nginx = {
|
||||||
|
|||||||
@ -7,33 +7,31 @@ in {
|
|||||||
options.my.servers.mealie.enable = lib.mkEnableOption "enable";
|
options.my.servers.mealie.enable = lib.mkEnableOption "enable";
|
||||||
config = lib.mkIf config.my.servers.mealie.enable {
|
config = lib.mkIf config.my.servers.mealie.enable {
|
||||||
sops.secrets.mealie.sopsFile = ../../secrets/env.yaml;
|
sops.secrets.mealie.sopsFile = ../../secrets/env.yaml;
|
||||||
virtualisation.oci-containers = {
|
virtualisation.oci-containers.containers.mealie = {
|
||||||
containers.mealie = {
|
autoStart = true;
|
||||||
autoStart = true;
|
image = "ghcr.io/mealie-recipes/mealie:v1.4.0";
|
||||||
image = "ghcr.io/mealie-recipes/mealie:v1.4.0";
|
ports = [ "${toString port}:9000" ];
|
||||||
ports = [ "${toString port}:9000" ];
|
volumes = [ "${config.my.containerData}/mealie:/app/data/" ];
|
||||||
volumes = [ "${config.my.containerData}/mealie:/app/data/" ];
|
environmentFiles = [ config.sops.secrets.mealie.path ];
|
||||||
environmentFiles = [ config.sops.secrets.mealie.path ];
|
environment = {
|
||||||
environment = {
|
TZ = "America/Mexico_City";
|
||||||
TZ = "America/Mexico_City";
|
ALLOW_SIGNUP = "true";
|
||||||
ALLOW_SIGNUP = "true";
|
PUID = "1000";
|
||||||
PUID = "1000";
|
PGID = "100";
|
||||||
PGID = "100";
|
MAX_WORKERS = "1";
|
||||||
MAX_WORKERS = "1";
|
WEB_CONCURRENCY = "1";
|
||||||
WEB_CONCURRENCY = "1";
|
BASE_URL = url;
|
||||||
BASE_URL = url;
|
SMTP_HOST = "smtp.gmail.com";
|
||||||
SMTP_HOST = "smtp.gmail.com";
|
SMTP_PORT = "587";
|
||||||
SMTP_PORT = "587";
|
};
|
||||||
};
|
extraOptions = [
|
||||||
extraOptions = [
|
"--memory=1g" # VA-API (omit for NVENC)
|
||||||
"--memory=1g" # VA-API (omit for NVENC)
|
];
|
||||||
];
|
labels = {
|
||||||
labels = {
|
"flame.type" = "application";
|
||||||
"flame.type" = "application";
|
"flame.name" = "Mealie";
|
||||||
"flame.name" = "Mealie";
|
"flame.url" = url;
|
||||||
"flame.url" = url;
|
"flame.icon" = "fridge";
|
||||||
"flame.icon" = "fridge";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
services.nginx = {
|
services.nginx = {
|
||||||
|
|||||||
@ -3,18 +3,16 @@ let port = 8881;
|
|||||||
in {
|
in {
|
||||||
options.my.servers.metube.enable = lib.mkEnableOption "enable";
|
options.my.servers.metube.enable = lib.mkEnableOption "enable";
|
||||||
config = lib.mkIf config.my.servers.metube.enable {
|
config = lib.mkIf config.my.servers.metube.enable {
|
||||||
virtualisation.oci-containers = {
|
virtualisation.oci-containers.containers.metube = {
|
||||||
containers.metube = {
|
image = "ghcr.io/alexta69/metube";
|
||||||
image = "ghcr.io/alexta69/metube";
|
ports = [ "${toString port}:8081" ];
|
||||||
ports = [ "${toString port}:8081" ];
|
volumes = [
|
||||||
volumes = [
|
"${config.my.containerData}/metube:/downloads"
|
||||||
"${config.my.containerData}/metube:/downloads"
|
"/home/jawz/.local/share/cookies.txt:/cookies.txt"
|
||||||
"/home/jawz/.local/share/cookies.txt:/cookies.txt"
|
];
|
||||||
];
|
environment = {
|
||||||
environment = {
|
TZ = "America/Mexico_City";
|
||||||
TZ = "America/Mexico_City";
|
YTDL_OPTIONS = ''{"cookiefile":"/cookies.txt"}'';
|
||||||
YTDL_OPTIONS = ''{"cookiefile":"/cookies.txt"}'';
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
services.nginx = {
|
services.nginx = {
|
||||||
|
|||||||
@ -7,29 +7,26 @@ in {
|
|||||||
options.my.servers.multi-scrobbler.enable = lib.mkEnableOption "enable";
|
options.my.servers.multi-scrobbler.enable = lib.mkEnableOption "enable";
|
||||||
config = lib.mkIf config.my.servers.multi-scrobbler.enable {
|
config = lib.mkIf config.my.servers.multi-scrobbler.enable {
|
||||||
sops.secrets.multi-scrobbler.sopsFile = ../../secrets/env.yaml;
|
sops.secrets.multi-scrobbler.sopsFile = ../../secrets/env.yaml;
|
||||||
virtualisation.oci-containers = {
|
virtualisation.oci-containers.containers.multi-scrobbler = {
|
||||||
containers.multi-scrobbler = {
|
image = "foxxmd/multi-scrobbler";
|
||||||
image = "foxxmd/multi-scrobbler";
|
ports = [ "${toString port}:${toString port}" ];
|
||||||
ports = [ "${toString port}:${toString port}" ];
|
environmentFiles = [ config.sops.secrets.multi-scrobbler.path ];
|
||||||
environmentFiles = [ config.sops.secrets.multi-scrobbler.path ];
|
environment = {
|
||||||
environment = {
|
TZ = "America/Mexico_City";
|
||||||
TZ = "America/Mexico_City";
|
PUID = "1000";
|
||||||
PUID = "1000";
|
PGID = "100";
|
||||||
PGID = "100";
|
BASE_URL = url;
|
||||||
BASE_URL = url;
|
DEEZER_REDIRECT_URI =
|
||||||
DEEZER_REDIRECT_URI = "http://${config.my.miniserver-ip}:${
|
"http://${config.my.miniserver-ip}:${toString port}/deezer/callback";
|
||||||
toString port
|
MALOJA_URL = "http://maloja:42010";
|
||||||
}/deezer/callback";
|
WS_ENABLE = "true";
|
||||||
MALOJA_URL = "http://maloja:42010";
|
};
|
||||||
WS_ENABLE = "true";
|
volumes = [ "${config.my.containerData}/multi-scrobbler:/config" ];
|
||||||
};
|
labels = {
|
||||||
volumes = [ "${config.my.containerData}/multi-scrobbler:/config" ];
|
"flame.type" = "application";
|
||||||
labels = {
|
"flame.name" = "Multi-scrobbler";
|
||||||
"flame.type" = "application";
|
"flame.url" = url;
|
||||||
"flame.name" = "Multi-scrobbler";
|
"flame.icon" = "broadcast";
|
||||||
"flame.url" = url;
|
|
||||||
"flame.icon" = "broadcast";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
services.nginx = {
|
services.nginx = {
|
||||||
|
|||||||
@ -183,44 +183,42 @@ in {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
virtualisation.oci-containers = {
|
virtualisation.oci-containers.containers = {
|
||||||
containers = {
|
go-vod = lib.mkIf config.my.servers.go-vod.enable {
|
||||||
go-vod = lib.mkIf config.my.servers.go-vod.enable {
|
autoStart = true;
|
||||||
autoStart = true;
|
image = "radialapps/go-vod";
|
||||||
image = "radialapps/go-vod";
|
environment = {
|
||||||
environment = {
|
TZ = "America/Mexico_City";
|
||||||
TZ = "America/Mexico_City";
|
NEXTCLOUD_HOST = "https://${config.services.nextcloud.hostName}";
|
||||||
NEXTCLOUD_HOST = "https://${config.services.nextcloud.hostName}";
|
NVIDIA_VISIBLE_DEVICES = "all";
|
||||||
NVIDIA_VISIBLE_DEVICES = "all";
|
|
||||||
};
|
|
||||||
volumes = [ "ncdata:/var/www/html:ro" ];
|
|
||||||
extraOptions = [
|
|
||||||
"--device=/dev/dri" # VA-API (omit for NVENC)
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
collabora = lib.mkIf config.my.servers.collabora.enable {
|
volumes = [ "ncdata:/var/www/html:ro" ];
|
||||||
autoStart = true;
|
extraOptions = [
|
||||||
image = "collabora/code";
|
"--device=/dev/dri" # VA-API (omit for NVENC)
|
||||||
imageFile = pkgs.dockerTools.pullImage {
|
];
|
||||||
imageName = "collabora/code";
|
};
|
||||||
imageDigest =
|
collabora = lib.mkIf config.my.servers.collabora.enable {
|
||||||
"sha256:1747d1b58ac595df63fb651c4533983bbb556b0a5427f9a14dc4d9e75bda6aff";
|
autoStart = true;
|
||||||
sha256 = "sha256-sIGLGsHMYqkboMlRnSN6eiy+iyKYj+wKvt48Hxirp00=";
|
image = "collabora/code";
|
||||||
};
|
imageFile = pkgs.dockerTools.pullImage {
|
||||||
ports = [ "9980:9980" ];
|
imageName = "collabora/code";
|
||||||
environment = {
|
imageDigest =
|
||||||
TZ = "America/Mexico_City";
|
"sha256:1747d1b58ac595df63fb651c4533983bbb556b0a5427f9a14dc4d9e75bda6aff";
|
||||||
domain = urlSecret;
|
sha256 = "sha256-sIGLGsHMYqkboMlRnSN6eiy+iyKYj+wKvt48Hxirp00=";
|
||||||
aliasgroup1 = "${url}:443";
|
|
||||||
aliasgroup2 = "cloud.rotehaare.art:443";
|
|
||||||
dictionaries = "en_CA en_US es_MX es_ES fr_FR it pt_BR ru";
|
|
||||||
extra_params = ''
|
|
||||||
--o:ssl.enable=false
|
|
||||||
--o:ssl.termination=true
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
extraOptions = [ "--cap-add=MKNOD" ];
|
|
||||||
};
|
};
|
||||||
|
ports = [ "9980:9980" ];
|
||||||
|
environment = {
|
||||||
|
TZ = "America/Mexico_City";
|
||||||
|
domain = urlSecret;
|
||||||
|
aliasgroup1 = "${url}:443";
|
||||||
|
aliasgroup2 = "cloud.rotehaare.art:443";
|
||||||
|
dictionaries = "en_CA en_US es_MX es_ES fr_FR it pt_BR ru";
|
||||||
|
extra_params = ''
|
||||||
|
--o:ssl.enable=false
|
||||||
|
--o:ssl.termination=true
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
extraOptions = [ "--cap-add=MKNOD" ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
systemd = lib.mkIf config.my.servers.nextcloud.enableCron {
|
systemd = lib.mkIf config.my.servers.nextcloud.enableCron {
|
||||||
|
|||||||
@ -13,12 +13,10 @@
|
|||||||
// { };
|
// { };
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
virtualisation.oci-containers = {
|
virtualisation.oci-containers.containers.flaresolverr = {
|
||||||
containers.flaresolverr = {
|
autoStart = true;
|
||||||
autoStart = true;
|
image = "ghcr.io/flaresolverr/flaresolverr:latest";
|
||||||
image = "ghcr.io/flaresolverr/flaresolverr:latest";
|
ports = [ "8191:8191" ];
|
||||||
ports = [ "8191:8191" ];
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@ -7,25 +7,22 @@ in {
|
|||||||
config = lib.mkIf
|
config = lib.mkIf
|
||||||
(config.my.servers.ryot.enable && config.my.servers.postgres.enable) {
|
(config.my.servers.ryot.enable && config.my.servers.postgres.enable) {
|
||||||
sops.secrets.ryot.sopsFile = ../../secrets/env.yaml;
|
sops.secrets.ryot.sopsFile = ../../secrets/env.yaml;
|
||||||
virtualisation.oci-containers = {
|
virtualisation.oci-containers.containers.ryot = {
|
||||||
containers.ryot = {
|
image = "ghcr.io/ignisda/ryot:latest";
|
||||||
image = "ghcr.io/ignisda/ryot:latest";
|
ports = [ "${toString port}:8000" ];
|
||||||
ports = [ "${toString port}:8000" ];
|
environmentFiles = [ config.sops.secrets.ryot.path ];
|
||||||
environmentFiles = [ config.sops.secrets.ryot.path ];
|
environment = {
|
||||||
environment = {
|
RUST_LOG = "ryot=debug,sea_orm=debug";
|
||||||
RUST_LOG = "ryot=debug,sea_orm=debug";
|
TZ = "America/Mexico_City";
|
||||||
TZ = "America/Mexico_City";
|
DATABASE_URL = "postgres:///ryot?host=${config.my.postgresSocket}";
|
||||||
DATABASE_URL = "postgres:///ryot?host=${config.my.postgresSocket}";
|
FRONTEND_INSECURE_COOKIES = "true";
|
||||||
FRONTEND_INSECURE_COOKIES = "true";
|
};
|
||||||
};
|
volumes = [ "${config.my.postgresSocket}:${config.my.postgresSocket}" ];
|
||||||
volumes =
|
labels = {
|
||||||
[ "${config.my.postgresSocket}:${config.my.postgresSocket}" ];
|
"flame.type" = "application";
|
||||||
labels = {
|
"flame.name" = "Ryot";
|
||||||
"flame.type" = "application";
|
"flame.url" = url;
|
||||||
"flame.name" = "Ryot";
|
"flame.icon" = "radar";
|
||||||
"flame.url" = url;
|
|
||||||
"flame.icon" = "radar";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
services.nginx = {
|
services.nginx = {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user