From 1f79a64804d9b4946f85b20f142758e9c740555a Mon Sep 17 00:00:00 2001 From: Christoph Urlacher Date: Mon, 1 Dec 2025 20:19:32 +0100 Subject: [PATCH] Services/Pulse: Add thinknix agent --- system/services/pulse-agent-thinknix.nix | 42 ++++++++++++++++++++++++ system/thinknix/default.nix | 1 + 2 files changed, 43 insertions(+) create mode 100644 system/services/pulse-agent-thinknix.nix diff --git a/system/services/pulse-agent-thinknix.nix b/system/services/pulse-agent-thinknix.nix new file mode 100644 index 00000000..513f3179 --- /dev/null +++ b/system/services/pulse-agent-thinknix.nix @@ -0,0 +1,42 @@ +{ + config, + lib, + pkgs, + ... +}: let + pulseAgentThinknixVersion = "4.35.0"; +in { + virtualisation.oci-containers.containers = { + pulse-agent-thinknix = { + image = "ghcr.io/rcourtman/pulse-docker-agent:${pulseAgentThinknixVersion}"; + autoStart = true; + + dependsOn = [ + "pulse" + ]; + + 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 = "6ab80ff7336a0cd7e0edcf3cd270a72bf6e075bcff337235ab011d1f70231e2f"; + }; + + extraOptions = [ + # "--privileged" + # "--device=nvidia.com/gpu=all" + "--net=behind-nginx" + "--pid=host" + "--uts=host" + ]; + }; + }; +} diff --git a/system/thinknix/default.nix b/system/thinknix/default.nix index 14264231..82783468 100644 --- a/system/thinknix/default.nix +++ b/system/thinknix/default.nix @@ -21,6 +21,7 @@ ../services/nginx-proxy-manager.nix ../services/portainer.nix ../services/pulse.nix + ../services/pulse-agent-thinknix.nix ../services/whats-up-docker.nix ];