nixos/modules/ttrss/default.nix
Andreas Zweili 0a2c2e72c3 Readd extraOptions
otherwise the connection to the DB doesn't seem to be working
2022-11-02 23:38:29 +01:00

35 lines
942 B
Nix

{ inputs, config, ... }:
{
imports = [
"${inputs.self}/modules/docker"
];
age.secrets.ttrssEnv.file = "${inputs.self}/scrts/ttrss_env.age";
virtualisation.oci-containers = {
backend = "docker";
containers."ttrss" = {
image = "registry.gitlab.com/lunik1/docker-tt-rss";
autoStart = true;
environment = {
PUID = "1000";
PGID = "1000";
TZ = "Europe/Zurich";
TTRSS_DB_TYPE = "mysql";
TTRSS_DB_USER = "ttrss";
TTRSS_DB_NAME = "ttrssdb";
TTRSS_DB_PORT = "3306";
TTRSS_DB_HOST = "host.docker.internal";
TTRSS_SELF_URL_PATH = "https://ttrss.2li.ch";
};
environmentFiles = [ config.age.secrets.ttrssEnv.path ];
ports = [
"8080:80"
];
volumes = [
"/home/andreas/docker_systems/ttrss/config:/config"
];
extraOptions = [ "--add-host=host.docker.internal:host-gateway" ];
};
};
}