server/maubot: move impermanence config to impermanence module
This commit is contained in:
parent
3250edc21c
commit
9e11d15be9
|
@ -6,9 +6,6 @@
|
||||||
let
|
let
|
||||||
cfg = config.server;
|
cfg = config.server;
|
||||||
in {
|
in {
|
||||||
impermanence.directories = [
|
|
||||||
{ directory = /var/lib/maubot; user = "maubot"; group = "maubot"; mode = "0755"; }
|
|
||||||
];
|
|
||||||
services.nginx.virtualHosts."matrix.${cfg.domainName}".locations = let
|
services.nginx.virtualHosts."matrix.${cfg.domainName}".locations = let
|
||||||
inherit (config.services.maubot) settings;
|
inherit (config.services.maubot) settings;
|
||||||
in {
|
in {
|
||||||
|
|
|
@ -93,6 +93,8 @@ in {
|
||||||
{ directory = /var/lib/hydra; user = "hydra"; group = "hydra"; mode = "0755"; }
|
{ directory = /var/lib/hydra; user = "hydra"; group = "hydra"; mode = "0755"; }
|
||||||
] ++ lib.optionals config.services.matrix-synapse.enable [
|
] ++ lib.optionals config.services.matrix-synapse.enable [
|
||||||
{ directory = /var/lib/matrix-synapse; user = "matrix-synapse"; group = "matrix-synapse"; mode = "0700"; }
|
{ 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 [
|
] ++ lib.optionals config.services.monero.enable [
|
||||||
{ directory = config.services.monero.dataDir; user = "monero"; group = "monero"; mode = "0750"; }
|
{ directory = config.services.monero.dataDir; user = "monero"; group = "monero"; mode = "0750"; }
|
||||||
] ++ lib.optionals config.services.mullvad-vpn.enable [
|
] ++ lib.optionals config.services.mullvad-vpn.enable [
|
||||||
|
|
Loading…
Reference in a new issue