summaryrefslogtreecommitdiff
path: root/modules/server/virtualisation/containers/beszel-agent.nix
blob: 9a3f96f6803ebb545503a29db86c6a5238ca4d77 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{ secrets, ... }:
{
  virtualisation.oci-containers.containers.beszel-agent = {
    image = "henrygd/beszel-agent";
    autoStart = true;
    ports = [ "127.0.0.1:45876:45876" ];
    volumes = [ "/var/run/docker.sock:/var/run/docker.sock:ro" ];

    extraOptions = [
      "--network=host"
      "--restart=on-failure"
    ];

    environment = {
      PORT = "45876";
      KEY = "ssh-ed25519 ${secrets.beszel_agent_public_key}";
    };
  };
}