1

Services: Restructure f10, f11, heidi

This commit is contained in:
2025-07-11 19:56:36 +02:00
parent f014766c9c
commit 60485ec9e9
3 changed files with 102 additions and 89 deletions

View File

@ -3,37 +3,41 @@
lib,
pkgs,
...
}: {
}: let
heidiVersion = "latest";
in {
# If we need to pass secrets to containers we can't use plain env variables.
sops.templates."heidi_secrets.env".content = ''
DISCORD_TOKEN=${config.sops.placeholder.heidi-discord-token}
'';
virtualisation.oci-containers.containers.heidi = {
image = "gitea.vps.chriphost.de/christoph/discord-heidi:latest";
autoStart = true;
virtualisation.oci-containers.containers = {
heidi = {
image = "gitea.vps.chriphost.de/christoph/discord-heidi:${heidiVersion}";
autoStart = true;
dependsOn = [];
dependsOn = [];
ports = [];
ports = [];
volumes = [
"heidi_config:/config"
volumes = [
"heidi_config:/config"
"/home/christoph/heidi-sounds:/sounds:ro"
];
"/home/christoph/heidi-sounds:/sounds:ro"
];
environment = {
DOCKER = "True";
environment = {
DOCKER = "True";
};
environmentFiles = [
config.sops.templates."heidi_secrets.env".path
];
extraOptions = [
"--init" # Make an init process take up PID 1, to make python receive the SIGTERM
"--net=behind-nginx"
];
};
environmentFiles = [
config.sops.templates."heidi_secrets.env".path
];
extraOptions = [
"--init" # Make an init process take up PID 1, to make python receive the SIGTERM
"--net=behind-nginx"
];
};
}