mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-12-03 05:26:18 +01:00
aff0158ef7
Signed-off-by: magic_rb <magic_rb@redalder.org>
62 lines
1.4 KiB
Nix
62 lines
1.4 KiB
Nix
{
|
|
inputs,
|
|
lib,
|
|
...
|
|
}: let
|
|
inherit
|
|
(lib)
|
|
singleton
|
|
;
|
|
|
|
commonConfig = pkgs:
|
|
(pkgs.formats.yaml {}).generate "common.yaml"
|
|
(import ./common_config.nix {logConfig = logConfig pkgs;});
|
|
logConfig = pkgs:
|
|
(pkgs.formats.yaml {}).generate "log.yaml"
|
|
(import ./log_config.nix {});
|
|
|
|
callPackage = lib.callPackageWith {
|
|
inherit
|
|
(inputs)
|
|
nixpkgs
|
|
;
|
|
inherit
|
|
(inputs.nixng.nglib)
|
|
makeSystem
|
|
;
|
|
inherit
|
|
commonConfig
|
|
logConfig
|
|
;
|
|
};
|
|
in {
|
|
flake.nixngConfigurations.synapseFederationSender = callPackage ./generic_worker.nix {
|
|
name = "generic";
|
|
listener_resources = singleton "health";
|
|
};
|
|
flake.nixngConfigurations.synapseFederationReceiver = callPackage ./generic_worker.nix {
|
|
name = "generic";
|
|
listener_resources = [
|
|
"health"
|
|
"federation"
|
|
];
|
|
};
|
|
flake.nixngConfigurations.synapseClient = callPackage ./generic_worker.nix {
|
|
name = "generic";
|
|
listener_resources = [
|
|
"client"
|
|
"health"
|
|
];
|
|
};
|
|
flake.nixngConfigurations.synapseSync = callPackage ./generic_worker.nix {
|
|
name = "generic";
|
|
listener_resources = [
|
|
"client"
|
|
"health"
|
|
];
|
|
};
|
|
flake.nixngConfigurations.synapseRedis = callPackage ./redis.nix {};
|
|
flake.nixngConfigurations.synapsePostgreSQL = callPackage ./postgresql.nix {};
|
|
flake.nixngConfigurations.synapse = callPackage ./synapse.nix {};
|
|
}
|