init matrix config
This commit is contained in:
parent
256ff49887
commit
9634b57b86
4 changed files with 27 additions and 0 deletions
|
@ -4,6 +4,7 @@
|
|||
nginx.enable = true;
|
||||
website.enable = true;
|
||||
fedi.enable = false; # Currently broken
|
||||
matrix.enable = true;
|
||||
|
||||
stateVersion = "25.05";
|
||||
hmStateVersion = "25.05";
|
||||
|
|
|
@ -9,6 +9,7 @@ in {
|
|||
./games
|
||||
./home
|
||||
./layout
|
||||
./matrix
|
||||
./networking
|
||||
./nginx
|
||||
./niri
|
||||
|
|
24
modules/matrix/default.nix
Normal file
24
modules/matrix/default.nix
Normal file
|
@ -0,0 +1,24 @@
|
|||
{ config, lib, ... }: let
|
||||
inherit (config) conf;
|
||||
inherit (lib) mkIf;
|
||||
in mkIf conf.matrix.enable {
|
||||
services.nginx.virtualHosts = {
|
||||
"matrix.twoneis.site" = {
|
||||
serverName = "matrix.twoneis.site";
|
||||
forceSSL = false;
|
||||
locations = {
|
||||
"/" = {
|
||||
recommendedProxySettings = true;
|
||||
proxyPass = "http://127.0.0.1:6167";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
services.conduwuit = {
|
||||
enable = true;
|
||||
settings.global = {
|
||||
server_name = "matrix.twoneis.site";
|
||||
};
|
||||
};
|
||||
}
|
|
@ -20,6 +20,7 @@ in {
|
|||
nginx.enable = mkEnableOption "Enable nginx.";
|
||||
website.enable = mkEnableOption "Serve website through nginx. Nginx must be enabled to work correctly.";
|
||||
fedi.enable = mkEnableOption "Host a fedi server on this machine.";
|
||||
matrix.enable = mkEnableOption "Host a matrix server on this machine";
|
||||
|
||||
# Mixed and more complex options
|
||||
username = mkOption {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue