Organize bits better, add OwnTracks

This commit is contained in:
Gene Liverman 2024-06-15 20:42:25 -04:00
parent eb53309c33
commit c68680eff4
7 changed files with 139 additions and 82 deletions

View file

@ -0,0 +1,20 @@
{ config, pkgs, ... }: let
frontend_port = "8082";
in {
environment.systemPackages = with pkgs; [
owntracks-recorder
];
virtualisation.oci-containers.containers = {
"owntracks-frontend" = {
autoStart = true;
image = "docker.io/owntracks/frontend:2.15.3";
environment = {
LISTEN = frontend_port;
SERVER_HOST = config.networking.hostName;
SERVER_PORT = "8083";
};
ports = [ "${frontend_port}:${frontend_port}" ];
};
};
}