nix-conf/modules/servers/odin/services/wallabag.nix
Crony Akatsuki 4e783c052b refactor: reorganize server modules
- Moved each individual service definition into a dedicated `services/`
  directory under every server module (e.g.
`modules/servers/bragi/services/`).
- Updated the corresponding `default.nix` files to import the renamed
  service modules from the new location.
- Applied the same changes across all server modules, ensuring
  the API and import paths remain consistent.
2026-01-19 19:21:11 +01:00

41 lines
982 B
Nix

{...}: {
virtualisation.oci-containers.containers.wallabag = {
image = "docker.io/wallabag/wallabag:latest";
autoStart = true;
ports = [
"8181:80"
];
environment = {
"SYMFONY__ENV__DOMAIN_NAME" = "https://wallabag.cronyakatsuki.xyz";
};
labels = {
"io.containers.autoupdate" = "registry";
};
volumes = [
"/var/lib/wallabag/data:/var/www/wallabag/data"
"/var/lib/wallabag/images:/var/www/wallabag/web/assets/images"
];
};
services.traefik.dynamicConfigOptions.http = {
services.wallabag.loadBalancer.servers = [
{
url = "http://localhost:8181";
}
];
routers.wallabag = {
rule = "Host(`wallabag.cronyakatsuki.xyz`)";
tls = {
certResolver = "porkbun";
};
service = "wallabag";
entrypoints = "websecure";
};
};
services.restic.backups = {
local.paths = ["/var/lib/wallabag"];
server.paths = ["/var/lib/wallabag"];
};
}