Setup OwnTracks frontend and recorder

This commit is contained in:
Gene Liverman 2024-02-11 21:21:25 -05:00 committed by Gene Liverman
parent b07fc41726
commit 623dd63fec
3 changed files with 41 additions and 27 deletions

View file

@ -2,8 +2,11 @@
imports = [
./hardware-configuration.nix
./disk-config.nix
../../../system/common/containers/owntracks.nix
];
system.stateVersion = "23.11";
boot.loader.grub = {
# no need to set devices, disko will add all devices that have a EF02 partition to the list already
# devices = [ ];
@ -11,8 +14,6 @@
efiInstallAsRemovable = true;
};
system.stateVersion = "23.11";
networking = {
# Open ports in the firewall.
firewall.allowedTCPPorts = [ 22 ];

View file

@ -0,0 +1,13 @@
{ ... }: {
# Ideas from https://madison-technologies.com/take-your-nixos-container-config-and-shove-it/
virtualisation.oci-containers.containers = {
# See https://github.com/owntracks/frontend
ot-frontend = {
image = "owntracks/frontend";
};
# See https://github.com/owntracks/docker-recorder
ot-recorder = {
image = "owntracks/recorder";
};
};
}