adjusted formatting of containers
This commit is contained in:
parent
ffbc449c4a
commit
91650b3263
@ -9,8 +9,7 @@ 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";
|
||||||
@ -39,7 +38,6 @@ in {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
|
||||||
services.nginx = {
|
services.nginx = {
|
||||||
enable = true;
|
enable = true;
|
||||||
virtualHosts."start.${config.my.domain}" = proxyReverse port // { };
|
virtualHosts."start.${config.my.domain}" = proxyReverse port // { };
|
||||||
|
|||||||
@ -5,8 +5,7 @@ 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}" ];
|
||||||
@ -30,7 +29,6 @@ in {
|
|||||||
"flame.icon" = "music";
|
"flame.icon" = "music";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
|
||||||
services = {
|
services = {
|
||||||
lidarr.enable = true;
|
lidarr.enable = true;
|
||||||
nginx = {
|
nginx = {
|
||||||
|
|||||||
@ -6,8 +6,7 @@ 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 ];
|
||||||
@ -27,7 +26,6 @@ in {
|
|||||||
"flame.icon" = "bookmark-music";
|
"flame.icon" = "bookmark-music";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
|
||||||
services.nginx = {
|
services.nginx = {
|
||||||
enable = true;
|
enable = true;
|
||||||
virtualHosts."${url}" = proxyReverse port // { };
|
virtualHosts."${url}" = proxyReverse port // { };
|
||||||
|
|||||||
@ -7,8 +7,7 @@ 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" ];
|
||||||
@ -35,7 +34,6 @@ in {
|
|||||||
"flame.icon" = "fridge";
|
"flame.icon" = "fridge";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
|
||||||
services.nginx = {
|
services.nginx = {
|
||||||
enable = true;
|
enable = true;
|
||||||
virtualHosts."${domain}" = proxyReverse port // { };
|
virtualHosts."${domain}" = proxyReverse port // { };
|
||||||
|
|||||||
@ -3,8 +3,7 @@ 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 = [
|
||||||
@ -16,7 +15,6 @@ in {
|
|||||||
YTDL_OPTIONS = ''{"cookiefile":"/cookies.txt"}'';
|
YTDL_OPTIONS = ''{"cookiefile":"/cookies.txt"}'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
|
||||||
services.nginx = {
|
services.nginx = {
|
||||||
enable = true;
|
enable = true;
|
||||||
virtualHosts."bajameesta.${config.my.domain}" = proxyReverse port // { };
|
virtualHosts."bajameesta.${config.my.domain}" = proxyReverse port // { };
|
||||||
|
|||||||
@ -7,8 +7,7 @@ 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 ];
|
||||||
@ -17,9 +16,8 @@ in {
|
|||||||
PUID = "1000";
|
PUID = "1000";
|
||||||
PGID = "100";
|
PGID = "100";
|
||||||
BASE_URL = url;
|
BASE_URL = url;
|
||||||
DEEZER_REDIRECT_URI = "http://${config.my.miniserver-ip}:${
|
DEEZER_REDIRECT_URI =
|
||||||
toString port
|
"http://${config.my.miniserver-ip}:${toString port}/deezer/callback";
|
||||||
}/deezer/callback";
|
|
||||||
MALOJA_URL = "http://maloja:42010";
|
MALOJA_URL = "http://maloja:42010";
|
||||||
WS_ENABLE = "true";
|
WS_ENABLE = "true";
|
||||||
};
|
};
|
||||||
@ -31,7 +29,6 @@ in {
|
|||||||
"flame.icon" = "broadcast";
|
"flame.icon" = "broadcast";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
|
||||||
services.nginx = {
|
services.nginx = {
|
||||||
enable = true;
|
enable = true;
|
||||||
virtualHosts."${domain}" = proxyReverse port // { };
|
virtualHosts."${domain}" = proxyReverse port // { };
|
||||||
|
|||||||
@ -183,8 +183,7 @@ 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";
|
||||||
@ -222,7 +221,6 @@ in {
|
|||||||
extraOptions = [ "--cap-add=MKNOD" ];
|
extraOptions = [ "--cap-add=MKNOD" ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
|
||||||
systemd = lib.mkIf config.my.servers.nextcloud.enableCron {
|
systemd = lib.mkIf config.my.servers.nextcloud.enableCron {
|
||||||
services = {
|
services = {
|
||||||
nextcloud-cron.path = [ pkgs.perl ];
|
nextcloud-cron.path = [ pkgs.perl ];
|
||||||
|
|||||||
@ -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,8 +7,7 @@ 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 ];
|
||||||
@ -18,8 +17,7 @@ in {
|
|||||||
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 =
|
volumes = [ "${config.my.postgresSocket}:${config.my.postgresSocket}" ];
|
||||||
[ "${config.my.postgresSocket}:${config.my.postgresSocket}" ];
|
|
||||||
labels = {
|
labels = {
|
||||||
"flame.type" = "application";
|
"flame.type" = "application";
|
||||||
"flame.name" = "Ryot";
|
"flame.name" = "Ryot";
|
||||||
@ -27,7 +25,6 @@ in {
|
|||||||
"flame.icon" = "radar";
|
"flame.icon" = "radar";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
|
||||||
services.nginx = {
|
services.nginx = {
|
||||||
enable = true;
|
enable = true;
|
||||||
virtualHosts."tracker.${config.my.domain}" = proxyReverse port // { };
|
virtualHosts."tracker.${config.my.domain}" = proxyReverse port // { };
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user