updated komga

This commit is contained in:
2026-09-19 20:20:57 +01:00
parent df0e38125e
commit 076f8ef4b4

View File

@@ -1,8 +1,7 @@
{moduleWithSystem, ...}: { {moduleWithSystem, ...}: {
flake.nixosModules.containerKomga = moduleWithSystem ({pkgs, ...}: { flake.nixosModules.containerKomga = moduleWithSystem ({pkgs, ...}: {
virtualisation.oci-containers.containers."komga" = { virtualisation.oci-containers.containers."komga" = {
image = "gotson/komga"; image = "gotson/komga:1.26.1";
volumes = [ volumes = [
"/containers/komga/config:/config:rw" "/containers/komga/config:/config:rw"
"/etc/timezone:/etc/timezone:ro" "/etc/timezone:/etc/timezone:ro"
@@ -37,7 +36,7 @@
# Networks # Networks
systemd.services."podman-network-komga_default" = { systemd.services."podman-network-komga_default" = {
path = [ pkgs.podman ]; path = [pkgs.podman];
serviceConfig = { serviceConfig = {
Type = "oneshot"; Type = "oneshot";
RemainAfterExit = true; RemainAfterExit = true;
@@ -46,8 +45,8 @@
script = '' script = ''
podman network inspect komga_default || podman network create komga_default podman network inspect komga_default || podman network create komga_default
''; '';
partOf = [ "podman-compose-komga-root.target" ]; partOf = ["podman-compose-komga-root.target"];
wantedBy = [ "podman-compose-komga-root.target" ]; wantedBy = ["podman-compose-komga-root.target"];
}; };
# Root service # Root service
@@ -57,7 +56,7 @@
unitConfig = { unitConfig = {
Description = "Root target generated by compose2nix."; Description = "Root target generated by compose2nix.";
}; };
wantedBy = [ "multi-user.target" ]; wantedBy = ["multi-user.target"];
}; };
}); });
} }