something something cumulative updates

This commit is contained in:
Rouven Seifert 2025-03-26 20:29:32 +01:00
parent 1d50fdc0e2
commit 3d382ef13c
14 changed files with 73 additions and 62 deletions

View file

@ -6,9 +6,9 @@ in
age.secrets.authentik-core = {
file = ../../../../secrets/nuc/authentik/core.age;
};
age.secrets.authentik-ldap = {
file = ../../../../secrets/nuc/authentik/ldap.age;
};
# age.secrets.authentik-ldap = {
# file = ../../../../secrets/nuc/authentik/ldap.age;
# };
services.authentik = {
enable = true;
environmentFile = config.age.secrets.authentik-core.path;
@ -21,10 +21,10 @@ in
"${domain}.key:/var/lib/caddy/certificates/acme-v02.api.letsencrypt.org-directory/${domain}/${domain}.key"
];
services.authentik-ldap = {
enable = true;
environmentFile = config.age.secrets.authentik-ldap.path;
};
# services.authentik-ldap = {
# enable = true;
# environmentFile = config.age.secrets.authentik-ldap.path;
# };
services.caddy.virtualHosts."${domain}".extraConfig = ''
reverse_proxy localhost:9000
'';

View file

@ -63,12 +63,12 @@ in
# If we don't explicitly set {a,h}s_token, mautrix-telegram will try to read them from the registrationFile
# and write them to the settingsFile in /nix/store, which obviously fails.
systemd.services.mautrix-telegram.serviceConfig.ExecStart =
lib.mkForce (pkgs.writeShellScript "start" ''
export MAUTRIX_TELEGRAM_APPSERVICE_AS_TOKEN=$(grep as_token ${registrationFileMautrix} | cut -d' ' -f2-)
export MAUTRIX_TELEGRAM_APPSERVICE_HS_TOKEN=$(grep hs_token ${registrationFileMautrix} | cut -d' ' -f2-)
# systemd.services.mautrix-telegram.serviceConfig.ExecStart =
# lib.mkForce (pkgs.writeShellScript "start" ''
# export MAUTRIX_TELEGRAM_APPSERVICE_AS_TOKEN=$(grep as_token ${registrationFileMautrix} | cut -d' ' -f2-)
# export MAUTRIX_TELEGRAM_APPSERVICE_HS_TOKEN=$(grep hs_token ${registrationFileMautrix} | cut -d' ' -f2-)
${pkgs.mautrix-telegram}/bin/mautrix-telegram --config='${settingsFile}'
'');
# ${pkgs.mautrix-telegram}/bin/mautrix-telegram --config='${settingsFile}'
# '');
}