System/Servenix: Add initial servenix system configuration
This commit is contained in:
31
system/services/heidi.nix
Normal file
31
system/services/heidi.nix
Normal file
@ -0,0 +1,31 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
virtualisation.oci-containers.containers.heidi = {
|
||||
image = "gitea.vps.chriphost.de/christoph/discord-heidi:latest";
|
||||
autoStart = true;
|
||||
|
||||
dependsOn = [];
|
||||
|
||||
ports = [];
|
||||
|
||||
volumes = [
|
||||
"heidi_config:/config"
|
||||
|
||||
"/home/christoph/heidi-sounds:/sounds:ro"
|
||||
];
|
||||
|
||||
environment = {
|
||||
DISCORD_TOKEN = (builtins.readFile ./heidi.discord_token);
|
||||
DOCKER = "True";
|
||||
};
|
||||
|
||||
extraOptions = [
|
||||
"--init" # Make an init process take up PID 1, to make python receive the SIGTERM
|
||||
"--net=behind-nginx"
|
||||
];
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user