OOYE runs?
This commit is contained in:
parent
b30c9644bc
commit
aea0001eaa
1 changed files with 4 additions and 1 deletions
|
@ -118,6 +118,8 @@ in
|
||||||
"OOYE namespace does not start with an underscore! This is recommended to avoid conflicts with registered users. Provided: '${cfg.namespace}'"
|
"OOYE namespace does not start with an underscore! This is recommended to avoid conflicts with registered users. Provided: '${cfg.namespace}'"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
environment.systemPackages = [ cfg.package ];
|
||||||
|
|
||||||
systemd.services."matrix-ooye-pre-start" = {
|
systemd.services."matrix-ooye-pre-start" = {
|
||||||
enable = true;
|
enable = true;
|
||||||
wantedBy = [ "multi-user.target" ];
|
wantedBy = [ "multi-user.target" ];
|
||||||
|
@ -126,6 +128,7 @@ in
|
||||||
WorkingDirectory = "/var/lib/matrix-ooye";
|
WorkingDirectory = "/var/lib/matrix-ooye";
|
||||||
StateDirectory = "matrix-ooye";
|
StateDirectory = "matrix-ooye";
|
||||||
DynamicUser = true;
|
DynamicUser = true;
|
||||||
|
Type = "oneshot";
|
||||||
|
|
||||||
LoadCredential = [
|
LoadCredential = [
|
||||||
"discord_token:${cfg.discordTokenPath}"
|
"discord_token:${cfg.discordTokenPath}"
|
||||||
|
@ -168,7 +171,7 @@ in
|
||||||
LoadCredential = [
|
LoadCredential = [
|
||||||
"matrix-ooye-registration:/var/lib/matrix-ooye/registration.yaml"
|
"matrix-ooye-registration:/var/lib/matrix-ooye/registration.yaml"
|
||||||
];
|
];
|
||||||
ExecStartPre = "cp /run/credentials/matrix-synapse.service/registration.yaml ${config.services.matrix-synapse.dataDir}/ooye-registration.yaml";
|
ExecStartPre = "+${pkgs.coreutils}/bin/cp /run/credentials/matrix-synapse.service/matrix-ooye-registration ${config.services.matrix-synapse.dataDir}/ooye-registration.yaml";
|
||||||
};
|
};
|
||||||
|
|
||||||
services.matrix-synapse.settings.app_service_config_files = lib.mkIf cfg.enableSynapseIntegration [
|
services.matrix-synapse.settings.app_service_config_files = lib.mkIf cfg.enableSynapseIntegration [
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue