This commit is contained in:
Michael Thomas 2024-05-06 21:42:25 -04:00
commit 1e2ed24b4f
2 changed files with 18 additions and 1 deletions

View File

@ -13,7 +13,7 @@
networking.firewall = {
enable = true;
interfaces."wg0" = {
allowedTCPPorts = [7654];
allowedTCPPorts = [7654 3030];
};
};
@ -85,6 +85,21 @@
database.passwordFile = config.age.secrets.keycloakDb.path;
};
virtualisation.oci-containers.backend = "podman";
virtualisation.oci-containers.containers.traggo = {
image = "traggo/server:latest";
autoStart = true;
ports = ["3030:3030"];
volumes = [
"/var/lib/traggo/data:/opt/traggo/data"
];
environment = {
TRAGGO_DEFAULT_USER_NAME = "michael";
TRAGGO_DEFAULT_USER_PASS = "NfvzH2H5eNJLAJb6";
};
};
swapDevices = [
{
device = "/swapfile";

View File

@ -1,4 +1,6 @@
{pkgs, ...}: {
virtualisation.containers.enable = true;
# Enable Podman w/ docker compose compatibility
virtualisation.podman = {
enable = true;