mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 12:29:19 -08:00
mx-puppet-discord now functions.
So hacky. How awful.
This commit is contained in:
parent
e112346823
commit
040457e241
2 changed files with 27 additions and 3 deletions
|
|
@ -2,12 +2,17 @@
|
|||
|
||||
let secrets = (import ../secrets.nix);
|
||||
in {
|
||||
environment.systemPackages = [
|
||||
pkgs.arc.pkgs.mx-puppet-discord
|
||||
];
|
||||
|
||||
services.matrix-synapse = {
|
||||
enable = true;
|
||||
registration_shared_secret = secrets.matrix.secret;
|
||||
server_name = "kittywit.ch";
|
||||
app_service_config_files = [
|
||||
"/var/lib/matrix-synapse/telegram-registration.yaml"
|
||||
"/var/lib/matrix-synapse/discord-registration.yaml"
|
||||
];
|
||||
listeners = [{
|
||||
port = 8008;
|
||||
|
|
@ -46,4 +51,24 @@ in {
|
|||
};
|
||||
environmentFile = "/etc/secrets/mautrix-telegram.env";
|
||||
};
|
||||
systemd.services.mx-puppet-discord = {
|
||||
serviceConfig = {
|
||||
Type = "simple";
|
||||
Restart = "always";
|
||||
ExecStart = "${pkgs.arc.pkgs.mx-puppet-discord}/bin/mx-puppet-discord -c /var/lib/mx-puppet-discord/config.yaml -f /var/lib/mx-puppet-discord/discord-registration.yaml";
|
||||
WorkingDirectory = "/var/lib/mx-puppet-discord";
|
||||
DynamicUser = true;
|
||||
StateDirectory = "mx-puppet-discord";
|
||||
UMask = 0027;
|
||||
PrivateTmp = true;
|
||||
ProtectSystem = "strict";
|
||||
ProtectHome = true;
|
||||
ProtectKernelTunables = true;
|
||||
ProtectKernelModules = true;
|
||||
ProtectControlGroups = true;
|
||||
};
|
||||
requisite = [ "matrix-synapse.service" ];
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
after = [ "network.target" ];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -11,11 +11,10 @@ let
|
|||
inherit (pkgs) dino;
|
||||
};
|
||||
|
||||
matrix-appservice-irc = callPackage "${sources.arc-nixexprs}/pkgs/public/matrix" {};
|
||||
mx-puppet-discord = callPackage "${sources.arc-nixexprs}/pkgs/public/mx-puppet-discord" {};
|
||||
|
||||
discord = pkgs.discord.override { nss = pkgs.nss_latest; };
|
||||
|
||||
arc = import sources.arc-nixexprs { inherit pkgs; };
|
||||
|
||||
linuxPackagesFor = kernel:
|
||||
(pkgs.linuxPackagesFor kernel).extend (_: ksuper: {
|
||||
vendor-reset =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue