mirror of
https://github.com/genebean/dots.git
synced 2026-03-27 01:17:42 -04:00
20 lines
496 B
Nix
20 lines
496 B
Nix
{ 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}" ];
|
|
};
|
|
};
|
|
}
|