Remove unused code

This commit is contained in:
Jakob Lechner 2025-04-09 22:44:36 +02:00
parent af5a07ca19
commit 48e71f75f8
104 changed files with 151 additions and 229 deletions

View file

@ -1,7 +1,5 @@
{ config, lib, pkgs, ... }:
let
cfg = config.jalr.matrix;
in
{
options.jalr.matrix = with lib; with lib.types; {
enable = mkEnableOption "simple matrix server";

View file

@ -1,4 +1,4 @@
{ config, lib, pkgs, ... }:
{ config, lib, ... }:
let
cfg = config.jalr.matrix;

View file

@ -1,4 +1,4 @@
{ config, lib, pkgs, ... }:
{ config, lib, ... }:
let
cfg = config.jalr.matrix;

View file

@ -79,7 +79,7 @@ lib.mkIf cfg.enable {
matrix-synapse.settings.app_service_config_files = lib.attrsets.mapAttrsToList
(
name: value:
name: _:
"/run/matrix-synapse/app_service_config/${name}.yaml"
)
cfg.synapse.app_service_config;
@ -108,8 +108,7 @@ lib.mkIf cfg.enable {
systemd.services.matrix-synapse = {
restartTriggers = lib.attrsets.mapAttrsToList
(
name: value:
"${value}"
_: value: "${value}"
)
cfg.synapse.app_service_config;
serviceConfig = {