From fdd52d91ae85ffad63baeae8b1d73e442e42f1ea Mon Sep 17 00:00:00 2001 From: Christoph Urlacher Date: Tue, 21 Nov 2023 20:40:29 +0100 Subject: [PATCH] Add heidi discord bot service --- ServeNix/configuration.nix | 3 +++ ServeNix/services/heidi.nix | 25 +++++++++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 ServeNix/services/heidi.nix diff --git a/ServeNix/configuration.nix b/ServeNix/configuration.nix index 0ab2b39..522f8c4 100644 --- a/ServeNix/configuration.nix +++ b/ServeNix/configuration.nix @@ -28,6 +28,9 @@ ./services/whats-up-docker.nix ./services/wireguard-vps.nix + # Discord + ./services/heidi.nix + # MultimediArr ./services/bazarr.nix ./services/fileflows.nix diff --git a/ServeNix/services/heidi.nix b/ServeNix/services/heidi.nix new file mode 100644 index 0000000..6a175b9 --- /dev/null +++ b/ServeNix/services/heidi.nix @@ -0,0 +1,25 @@ +{ + config, + lib, + pkgs, + ... +}: { + virtualisation.oci-containers.containers.heidi = { + image = "gitea.vps.chriphost.de/christoph/discord-heidi:latest"; + autoStart = true; + + dependsOn = []; + + ports = []; + + volumes = []; + + environment = { + DISCORD_TOKEN = (builtins.readFile ./heidi.discord_token); + }; + + extraOptions = [ + "--net=behind-nginx" + ]; + }; +}