mirror of
https://github.com/genebean/dots.git
synced 2026-03-28 01:47:42 -04:00
Organize bits better, add OwnTracks
This commit is contained in:
parent
eb53309c33
commit
c68680eff4
7 changed files with 139 additions and 82 deletions
20
modules/hosts/nixos/hetznix01/owntracks.nix
Normal file
20
modules/hosts/nixos/hetznix01/owntracks.nix
Normal 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}" ];
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue