nix dotfiles

This commit is contained in:
itamar 2026-04-10 18:50:25 +03:00
commit 7b8005c867
Signed by: itamar
SSH key fingerprint: SHA256:Dv6UzB9hN8q8FUgMR/7X3DTFpE/vSB2m05+KNnxM4B0
27 changed files with 1728 additions and 0 deletions

35
server/element.nix Normal file
View 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;
};
};
};
}