fixed the container dependancies
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user