From e82337ba6588c46662cdd0838b8ad24b3cb6fdd6 Mon Sep 17 00:00:00 2001 From: voidarc Date: Sun, 4 Oct 2026 15:14:17 +0100 Subject: [PATCH] fixed the container dependancies --- modules/containers/matrix/container.nix | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/modules/containers/matrix/container.nix b/modules/containers/matrix/container.nix index 5953af2..4b271cd 100644 --- a/modules/containers/matrix/container.nix +++ b/modules/containers/matrix/container.nix @@ -1,5 +1,5 @@ {moduleWithSystem, ...}: { - flake.nixosModules.containerMatrix = moduleWithSystem ({pkgs, ...}: {config, ...}: { + flake.nixosModules.containerMatrix = moduleWithSystem ({pkgs, ...}: { virtualisation.oci-containers.containers."matrix-mjolnir" = { image = "matrixdotorg/mjolnir:latest"; volumes = [ @@ -39,9 +39,6 @@ ports = [ "8008:8008/tcp" ]; - dependsOn = [ - "synapse-db" - ]; log-driver = "journald"; extraOptions = [ "--network-alias=synapse" @@ -75,12 +72,17 @@ ExecStop = "podman network rm -f matrix_default"; }; script = '' - podman network inspect matrix_default || podman network create matrix_default + podman network inspect matrix_default || podman network create --ipv6=false matrix_default ''; partOf = ["podman-compose-matrix-root.target"]; wantedBy = ["podman-compose-matrix-root.target"]; }; + networking.firewall.allowedTCPPorts = [ + 22 + 8448 + ]; + # Root service # When started, this will automatically create all resources and start # the containers. When stopped, this will teardown all resources.