nix dotfiles
This commit is contained in:
commit
7b8005c867
27 changed files with 1728 additions and 0 deletions
35
server/element.nix
Normal file
35
server/element.nix
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
{
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
domain = "itamar.site";
|
||||
matrixDomain = "matrix.${domain}";
|
||||
elementDomain = "element.${domain}";
|
||||
in {
|
||||
security.acme.certs."${elementDomain}" = {};
|
||||
|
||||
services.nginx.virtualHosts."${elementDomain}" = {
|
||||
enableACME = true;
|
||||
forceSSL = true;
|
||||
|
||||
root = pkgs.element-web.override {
|
||||
conf = {
|
||||
default_server_config = {
|
||||
"m.homeserver" = {
|
||||
base_url = "https://${matrixDomain}";
|
||||
server_name = domain;
|
||||
};
|
||||
"m.identity_server" = {
|
||||
base_url = "https://vector.im";
|
||||
};
|
||||
};
|
||||
# Optional: Set default theme and other settings
|
||||
default_theme = "dark";
|
||||
show_labs_settings = true;
|
||||
disable_guests = false;
|
||||
disable_3pid_login = false;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue