1
1
Fork 0

matrix: migrate to myne

Signed-off-by: Myned <dev@bjork.tech>
This commit is contained in:
Myned 2024-10-09 17:38:54 -05:00
parent 84732d1033
commit 30145e16d8
Signed by: myned
GPG key ID: C7224454F7881A34

View file

@ -32,7 +32,7 @@ in {
# Bind conduwuit service to media mount # Bind conduwuit service to media mount
# https://github.com/NixOS/nixpkgs/blob/nixos-unstable/nixos/modules/services/matrix/conduit.nix#L113 # https://github.com/NixOS/nixpkgs/blob/nixos-unstable/nixos/modules/services/matrix/conduit.nix#L113
systemd.services.conduit = let systemd.services.conduit = let
mount = "mnt-remote-conduwuit.mount"; mount = "mnt-local.mount";
in { in {
after = [mount]; after = [mount];
bindsTo = [mount]; bindsTo = [mount];
@ -47,10 +47,10 @@ in {
}; };
}; };
# Create bind mount to remote media in lieu of conduwuit.toml setting # Create bind mount to local media in lieu of conduwuit.toml setting
# https://nixos.wiki/wiki/Filesystems#Bind_mounts # https://nixos.wiki/wiki/Filesystems#Bind_mounts
fileSystems."/var/lib/matrix-conduit/media" = { fileSystems."/var/lib/matrix-conduit/media" = {
device = "/mnt/remote/conduwuit/media"; device = "/mnt/local/conduwuit/media";
fsType = "none"; fsType = "none";
options = ["bind"]; options = ["bind"];
}; };