From e61b989cc0774ca288e5dcf6155889a34e9bc8cd Mon Sep 17 00:00:00 2001 From: Christoph Urlacher Date: Mon, 1 Dec 2025 20:31:01 +0100 Subject: [PATCH] Services/Pulse: Add servenix agent --- system/servenix/default.nix | 1 + system/services/pulse-agent-servenix.nix | 40 ++++++++++++++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 system/services/pulse-agent-servenix.nix diff --git a/system/servenix/default.nix b/system/servenix/default.nix index 13f6aa36..d6c5598c 100644 --- a/system/servenix/default.nix +++ b/system/servenix/default.nix @@ -35,6 +35,7 @@ ../services/paperless.nix # ../services/plex.nix # Their monetization strategy is absolutely atrocious ../services/portainer-agent.nix + ../services/pulse-agent-servenix.nix ../services/prowlarr.nix ../services/radarr.nix ../services/sabnzbd-movies.nix diff --git a/system/services/pulse-agent-servenix.nix b/system/services/pulse-agent-servenix.nix new file mode 100644 index 00000000..6695a801 --- /dev/null +++ b/system/services/pulse-agent-servenix.nix @@ -0,0 +1,40 @@ +{ + config, + lib, + pkgs, + ... +}: let + pulseAgentServenixVersion = "4.35.0"; +in { + virtualisation.oci-containers.containers = { + pulse-agent-servenix = { + image = "ghcr.io/rcourtman/pulse-docker-agent:${pulseAgentServenixVersion}"; + autoStart = true; + + dependsOn = []; + + ports = []; + + volumes = [ + "/var/run/docker.sock:/var/run/docker.sock" + ]; + + environment = { + PUID = "1000"; + PGID = "1000"; + TZ = "Europe/Berlin"; + + PULSE_URL = "https://pulse.think.chriphost.de"; + PULSE_TOKEN = "6a72f3951990d6724f09106d052302f6f60fc9e94f71720bf8e8a1fe4a27d4a2"; + }; + + extraOptions = [ + # "--privileged" + # "--device=nvidia.com/gpu=all" + "--net=behind-nginx" + "--pid=host" + "--uts=host" + ]; + }; + }; +}