forked from fi/nix-infra
Add matrix-synapse host
This commit is contained in:
parent
b7864a6798
commit
e93c605ebb
13 changed files with 186 additions and 41 deletions
21
hosts/matrix/hardware-configuration.nix
Normal file
21
hosts/matrix/hardware-configuration.nix
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
{ config, ... }:
|
||||
{
|
||||
fileSystems."/mnt/data" = {
|
||||
device = "/dev/disk/by-label/data";
|
||||
fsType = "ext4";
|
||||
autoFormat = true;
|
||||
autoResize = true;
|
||||
};
|
||||
fileSystems."/var/lib/matrix-synapse/media_store" = {
|
||||
depends = [ "/mnt/data" ];
|
||||
device = "/mnt/data/media_store";
|
||||
fsType = "none";
|
||||
options = [ "bind" "X-mount.owner=matrix-synapse" "X-mount.group=matrix-synapse" ];
|
||||
};
|
||||
fileSystems."/var/lib/postgresql/${config.services.postgresql.package.psqlSchema}" = {
|
||||
depends = [ "/mnt/data" ];
|
||||
device = "/mnt/data/database";
|
||||
fsType = "none";
|
||||
options = [ "bind" "X-mount.owner=postgres" "X-mount.group=postgres" ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue