added beszel agent

This commit is contained in:
2026-07-12 18:08:44 +10:00
parent cf78588f00
commit 59a01b35bf
3 changed files with 19 additions and 3 deletions
+8
View File
@@ -9,10 +9,18 @@
[ # Include the results of the hardware scan. [ # Include the results of the hardware scan.
../../common/configuration.nix ../../common/configuration.nix
../../modules/nix/cache-server.nix ../../modules/nix/cache-server.nix
../../modules/nix/beszel-agent.nix
]; ];
networking.hostName = "nix-cache"; # Define your hostname. 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 = { services.prometheus.exporters.node = {
enable = true; enable = true;
openFirewall = true; openFirewall = true;
+8
View File
@@ -14,6 +14,7 @@
../../modules/nix/remote-builder-client.nix ../../modules/nix/remote-builder-client.nix
# ../../modules/nix/tailscale-exit-node.nix # ../../modules/nix/tailscale-exit-node.nix
# ../../modules/nix/enable-ip-forwarding.nix # ../../modules/nix/enable-ip-forwarding.nix
../../modules/nix/beszel-agent.nix
]; ];
@@ -38,6 +39,13 @@
# options = [ "defaults" ]; # 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 #Add sym links to data on users home folder
#system.userActivationScripts.createDockerSymlink.text = '' #system.userActivationScripts.createDockerSymlink.text = ''
# ln -sf /srv/scripts /home/nixos/scripts # ln -sf /srv/scripts /home/nixos/scripts
+3 -3
View File
@@ -4,8 +4,8 @@
services.beszel.agent.enable = true; services.beszel.agent.enable = true;
services.beszel.agent.environment = { services.beszel.agent.environment = {
#DOCKER_HOST = "tcp://docker-socket-proxy:2375"; #DOCKER_HOST = "tcp://docker-socket-proxy:2375";
HUB_URL = "https://beszel.lan.ddnsgeek.com"; HUB_URL = "http://docker.sweet.home:8090";
KEY = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIA2Snq66P/6GwTEafKuu3D/V1f7ofjKL9GD6ik+Kf/Gn"; #KEY = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIA2Snq66P/6GwTEafKuu3D/V1f7ofjKL9GD6ik+Kf/Gn";
TOKEN = "235b3-25a94f482-84576-40d34c48"; #TOKEN = "235b3-25a94f482-84576-40d34c48";
}; };
} }