This commit is contained in:
parent
ce7b147d04
commit
fe5cce0946
2 changed files with 58 additions and 0 deletions
56
modules/nixos/services/communication/conduit/default.nix
Normal file
56
modules/nixos/services/communication/conduit/default.nix
Normal file
|
@ -0,0 +1,56 @@
|
||||||
|
{ config, lib, pkgs, namespace, ... }:
|
||||||
|
let
|
||||||
|
inherit (lib) mkIf mkEnableOption;
|
||||||
|
|
||||||
|
cfg = config.${namespace}.services.communication.conduit;
|
||||||
|
domain = "matrix.kruining.eu";
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options.${namespace}.services.communication.conduit = {
|
||||||
|
enable = mkEnableOption "conduit (Matrix server)";
|
||||||
|
};
|
||||||
|
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
# ${namespace}.services = {
|
||||||
|
# persistance.postgresql.enable = true;
|
||||||
|
# virtualisation.podman.enable = true;
|
||||||
|
# };
|
||||||
|
|
||||||
|
services = {
|
||||||
|
matrix-conduit = {
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
settings.global = {
|
||||||
|
address = "::1";
|
||||||
|
port = 4001;
|
||||||
|
|
||||||
|
database_backend = "rocksdb";
|
||||||
|
|
||||||
|
server_name = "chris-matrix";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
# postgresql = {
|
||||||
|
# enable = true;
|
||||||
|
# ensureDatabases = [ "conduit" ];
|
||||||
|
# ensureUsers = [
|
||||||
|
# {
|
||||||
|
# name = "conduit";
|
||||||
|
# ensureDBOwnership = true;
|
||||||
|
# }
|
||||||
|
# ];
|
||||||
|
# };
|
||||||
|
|
||||||
|
caddy = {
|
||||||
|
enable = true;
|
||||||
|
virtualHosts = {
|
||||||
|
${domain}.extraConfig = ''
|
||||||
|
# import auth-z
|
||||||
|
|
||||||
|
# reverse_proxy http://127.0.0.1:5002
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
|
@ -10,6 +10,8 @@
|
||||||
authentication.authelia.enable = true;
|
authentication.authelia.enable = true;
|
||||||
authentication.zitadel.enable = true;
|
authentication.zitadel.enable = true;
|
||||||
|
|
||||||
|
communication.conduit.enable = true;
|
||||||
|
|
||||||
development.forgejo.enable = true;
|
development.forgejo.enable = true;
|
||||||
|
|
||||||
networking.ssh.enable = true;
|
networking.ssh.enable = true;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue