Services: Restructure f10, f11, heidi
This commit is contained in:
@ -3,9 +3,12 @@
|
|||||||
lib,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}: {
|
}: let
|
||||||
virtualisation.oci-containers.containers.formula10 = {
|
f10Version = "latest";
|
||||||
image = "gitea.vps.chriphost.de/christoph/formula10:latest";
|
in {
|
||||||
|
virtualisation.oci-containers.containers = {
|
||||||
|
formula10 = {
|
||||||
|
image = "gitea.vps.chriphost.de/christoph/formula10:${f10Version}";
|
||||||
autoStart = true;
|
autoStart = true;
|
||||||
|
|
||||||
dependsOn = [];
|
dependsOn = [];
|
||||||
@ -28,4 +31,5 @@
|
|||||||
"--net=behind-nginx"
|
"--net=behind-nginx"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
@ -3,9 +3,13 @@
|
|||||||
lib,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}: {
|
}: let
|
||||||
virtualisation.oci-containers.containers.formula11_pocketbase = {
|
pocketbaseVersion = "0.25.0";
|
||||||
image = "gitea.vps.chriphost.de/christoph/pocketbase:0.25.0";
|
f11Version = "latest";
|
||||||
|
in {
|
||||||
|
virtualisation.oci-containers.containers = {
|
||||||
|
formula11_pocketbase = {
|
||||||
|
image = "gitea.vps.chriphost.de/christoph/pocketbase:${pocketbaseVersion}";
|
||||||
autoStart = true;
|
autoStart = true;
|
||||||
|
|
||||||
dependsOn = [
|
dependsOn = [
|
||||||
@ -27,8 +31,8 @@
|
|||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
virtualisation.oci-containers.containers.formula11 = {
|
formula11 = {
|
||||||
image = "gitea.vps.chriphost.de/christoph/formula11:latest";
|
image = "gitea.vps.chriphost.de/christoph/formula11:${f11Version}";
|
||||||
autoStart = true;
|
autoStart = true;
|
||||||
|
|
||||||
dependsOn = [
|
dependsOn = [
|
||||||
@ -60,4 +64,5 @@
|
|||||||
"--net=behind-nginx"
|
"--net=behind-nginx"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
@ -3,14 +3,17 @@
|
|||||||
lib,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}: {
|
}: let
|
||||||
|
heidiVersion = "latest";
|
||||||
|
in {
|
||||||
# If we need to pass secrets to containers we can't use plain env variables.
|
# If we need to pass secrets to containers we can't use plain env variables.
|
||||||
sops.templates."heidi_secrets.env".content = ''
|
sops.templates."heidi_secrets.env".content = ''
|
||||||
DISCORD_TOKEN=${config.sops.placeholder.heidi-discord-token}
|
DISCORD_TOKEN=${config.sops.placeholder.heidi-discord-token}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
virtualisation.oci-containers.containers.heidi = {
|
virtualisation.oci-containers.containers = {
|
||||||
image = "gitea.vps.chriphost.de/christoph/discord-heidi:latest";
|
heidi = {
|
||||||
|
image = "gitea.vps.chriphost.de/christoph/discord-heidi:${heidiVersion}";
|
||||||
autoStart = true;
|
autoStart = true;
|
||||||
|
|
||||||
dependsOn = [];
|
dependsOn = [];
|
||||||
@ -36,4 +39,5 @@
|
|||||||
"--net=behind-nginx"
|
"--net=behind-nginx"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user