From 59a01b35bfa7d36a03a397060d74993b380b0b07 Mon Sep 17 00:00:00 2001 From: beatzaplenty Date: Sun, 12 Jul 2026 18:08:44 +1000 Subject: [PATCH] added beszel agent --- hosts/nix-cache/configuration.nix | 8 ++++++++ hosts/server/configuration.nix | 8 ++++++++ modules/nix/beszel-agent.nix | 6 +++--- 3 files changed, 19 insertions(+), 3 deletions(-) diff --git a/hosts/nix-cache/configuration.nix b/hosts/nix-cache/configuration.nix index c7d0e04..cbc20c7 100644 --- a/hosts/nix-cache/configuration.nix +++ b/hosts/nix-cache/configuration.nix @@ -9,10 +9,18 @@ [ # Include the results of the hardware scan. ../../common/configuration.nix ../../modules/nix/cache-server.nix + ../../modules/nix/beszel-agent.nix ]; networking.hostName = "nix-cache"; # Define your hostname. +services.beszel.agent.environment = { +#DOCKER_HOST = "tcp://docker-socket-proxy:2375"; +#HUB_URL = "http://docker.sweet.home:8090"; +KEY = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFPR9kwtC4TAeTRu46A7+opZsYpxqkRJ+x/ZyB2GWCeG"; +TOKEN = "48e71783-35df-4ea0-a8c2-05bc5e020d2e"; +}; + services.prometheus.exporters.node = { enable = true; openFirewall = true; diff --git a/hosts/server/configuration.nix b/hosts/server/configuration.nix index 9bb1715..2eaf334 100644 --- a/hosts/server/configuration.nix +++ b/hosts/server/configuration.nix @@ -14,6 +14,7 @@ ../../modules/nix/remote-builder-client.nix # ../../modules/nix/tailscale-exit-node.nix # ../../modules/nix/enable-ip-forwarding.nix + ../../modules/nix/beszel-agent.nix ]; @@ -38,6 +39,13 @@ # options = [ "defaults" ]; #}; +services.beszel.agent.environment = { +#DOCKER_HOST = "tcp://docker-socket-proxy:2375"; +#HUB_URL = "http://docker.sweet.home:8090"; +KEY = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFPR9kwtC4TAeTRu46A7+opZsYpxqkRJ+x/ZyB2GWCeG"; +TOKEN = "48e71783-35df-4ea0-a8c2-05bc5e020d2e"; +}; + #Add sym links to data on users home folder #system.userActivationScripts.createDockerSymlink.text = '' # ln -sf /srv/scripts /home/nixos/scripts diff --git a/modules/nix/beszel-agent.nix b/modules/nix/beszel-agent.nix index 20697bc..14a4c3c 100644 --- a/modules/nix/beszel-agent.nix +++ b/modules/nix/beszel-agent.nix @@ -4,8 +4,8 @@ services.beszel.agent.enable = true; services.beszel.agent.environment = { #DOCKER_HOST = "tcp://docker-socket-proxy:2375"; -HUB_URL = "https://beszel.lan.ddnsgeek.com"; -KEY = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIA2Snq66P/6GwTEafKuu3D/V1f7ofjKL9GD6ik+Kf/Gn"; -TOKEN = "235b3-25a94f482-84576-40d34c48"; +HUB_URL = "http://docker.sweet.home:8090"; +#KEY = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIA2Snq66P/6GwTEafKuu3D/V1f7ofjKL9GD6ik+Kf/Gn"; +#TOKEN = "235b3-25a94f482-84576-40d34c48"; }; }