Compare commits

..

No commits in common. "d4eff470499f55c490c7dda2775dda5b53f338ff" and "9ebe4fd4e706c30babeb32df1abb6e2ad0d071fe" have entirely different histories.

4 changed files with 22 additions and 44 deletions

View file

@ -35,7 +35,7 @@
bitwarden.enable = true; bitwarden.enable = true;
discord.enable = true; discord.enable = true;
ladybird.enable = true; ladybird.enable = true;
matrix.enable = true; nheko.enable = true;
obs.enable = true; obs.enable = true;
onlyoffice.enable = true; onlyoffice.enable = true;
signal.enable = true; signal.enable = true;

View file

@ -1,15 +0,0 @@
{ config, lib, pkgs, namespace, osConfig ? {}, ... }:
let
inherit (lib) mkIf mkEnableOption;
cfg = config.${namespace}.application.matrix;
in
{
options.${namespace}.application.matrix = {
enable = mkEnableOption "enable Matrix client (Fractal)";
};
config = mkIf cfg.enable {
home.packages = with pkgs; [ fractal ];
};
}

View file

@ -0,0 +1,15 @@
{ config, lib, pkgs, namespace, osConfig ? {}, ... }:
let
inherit (lib) mkIf mkEnableOption;
cfg = config.${namespace}.application.nheko;
in
{
options.${namespace}.application.nheko = {
enable = mkEnableOption "enable nheko (matrix client)";
};
config = mkIf cfg.enable {
home.packages = with pkgs; [ nheko ];
};
}

View file

@ -16,25 +16,17 @@ in
# virtualisation.podman.enable = true; # virtualisation.podman.enable = true;
# }; # };
networking.firewall.allowedTCPPorts = [ 4001 8448 ];
services = { services = {
matrix-conduit = { matrix-conduit = {
enable = true; enable = true;
settings.global = { settings.global = {
address = "::"; address = "::1";
port = 4001; port = 4001;
server_name = "matrix.kruining.eu";
database_backend = "rocksdb"; database_backend = "rocksdb";
# database_path = "/var/lib/matrix-conduit/";
allow_check_for_updates = false; server_name = "chris-matrix";
allow_registration = false;
enable_lightning_bolt = false;
}; };
}; };
@ -51,25 +43,11 @@ in
caddy = { caddy = {
enable = true; enable = true;
virtualHosts = let virtualHosts = {
inherit (builtins) toJSON; ${domain}.extraConfig = ''
# import auth-z
server = { # reverse_proxy http://127.0.0.1:5002
"m.server" = "${domain}:443";
};
client = {
"m.homeserver".base_url = "https://${domain}";
"m.identity_server".base_url = "https://auth.amarth.cloud";
};
in {
"${domain}".extraConfig = ''
header /.well-known/matrix/* Content-Type application/json
header /.well-known/matrix/* Access-Control-Allow-Origin *
respond /.well-known/matrix/server `${toJSON server}`
respond /.well-known/matrix/client `${toJSON client}`
reverse_proxy /_matrix/* http://::1:4001
# reverse_proxy /_synapse/client/* http://::1:4001
''; '';
}; };
}; };