update nixos module

Can't believe I forgot to do this...
This commit is contained in:
Charles Hall 2025-03-21 15:32:59 -07:00
parent a04951541a
commit 218d75d573
No known key found for this signature in database
GPG key ID: 7B8E0645816E07CF

View file

@ -44,14 +44,40 @@ in
type = types.nonEmptyStr;
readOnly = true;
description = ''
The path to store persistent data in.
The path to store database files in.
Note that this is read-only because this module makes use of
systemd's `StateDirectory` option.
'';
default = if cfg.settings.conduit_compat
then "/var/lib/matrix-conduit"
else "/var/lib/grapevine";
then "/var/lib/matrix-conduit/database"
else "/var/lib/grapevine/database";
};
media.backend = {
type = lib.mkOption {
type = types.nonEmptyStr;
readOnly = true;
description = ''
The media backend to use.
Note that this is read-only because `filesystem` is currently
the only valid option.
'';
default = "filesystem";
};
path = lib.mkOption {
type = types.nonEmptyStr;
readOnly = true;
description = ''
The path to store database files in.
Note that this is read-only because this module makes use of
systemd's `StateDirectory` option.
'';
default = if cfg.settings.conduit_compat
then "/var/lib/matrix-conduit/media"
else "/var/lib/grapevine/media";
};
};
listen = lib.mkOption {
type = types.listOf format.type;