server/maubot: move impermanence config to impermanence module

This commit is contained in:
chayleaf 2023-11-29 01:56:51 +07:00
parent 3250edc21c
commit 9e11d15be9
Signed by: chayleaf
GPG key ID: 78171AD46227E68E
2 changed files with 2 additions and 3 deletions

View file

@ -6,9 +6,6 @@
let
cfg = config.server;
in {
impermanence.directories = [
{ directory = /var/lib/maubot; user = "maubot"; group = "maubot"; mode = "0755"; }
];
services.nginx.virtualHosts."matrix.${cfg.domainName}".locations = let
inherit (config.services.maubot) settings;
in {

View file

@ -93,6 +93,8 @@ in {
{ directory = /var/lib/hydra; user = "hydra"; group = "hydra"; mode = "0755"; }
] ++ lib.optionals config.services.matrix-synapse.enable [
{ directory = /var/lib/matrix-synapse; user = "matrix-synapse"; group = "matrix-synapse"; mode = "0700"; }
] ++ lib.optionals config.services.maubot.enable [
{ directory = /var/lib/maubot; user = "maubot"; group = "maubot"; mode = "0750"; }
] ++ lib.optionals config.services.monero.enable [
{ directory = config.services.monero.dataDir; user = "monero"; group = "monero"; mode = "0750"; }
] ++ lib.optionals config.services.mullvad-vpn.enable [