From 854c3c46d1810073cf264870177b5d3bddfcc7cb Mon Sep 17 00:00:00 2001 From: Chris Cochrun Date: Thu, 28 Nov 2024 13:11:20 -0600 Subject: [PATCH] adding some tweaks to dalinar --- modules/matrix.nix | 2 +- systems/dalinar/configuration.nix | 33 +++++++++++++++++++++++++------ 2 files changed, 28 insertions(+), 7 deletions(-) diff --git a/modules/matrix.nix b/modules/matrix.nix index d43182b..43e4487 100644 --- a/modules/matrix.nix +++ b/modules/matrix.nix @@ -4,7 +4,7 @@ with lib; { services.matrix-synapse = { enable = true; - withJemalloc = true; + # withJemalloc = true; settings = { enable_metrics = true; enable_registration = true; diff --git a/systems/dalinar/configuration.nix b/systems/dalinar/configuration.nix index 8cb09c6..2578630 100644 --- a/systems/dalinar/configuration.nix +++ b/systems/dalinar/configuration.nix @@ -8,7 +8,7 @@ ../../modules/servers.nix ../../pkgs/base-packages.nix ../../modules/audiobookshelf.nix - ../../modules/matrix.nix + # ../../modules/matrix.nix ]; networking.hostName = "dalinar"; # Define your hostname. @@ -49,7 +49,13 @@ extraGroups = [ "wheel" ]; # Enable ‘sudo’ for the user. }; - virtualisation.docker.enable = true; + virtualisation.docker = { + enable = true; + # daemon.settings = { + # experimental = true; + # ip6tables = true; + # }; + }; # Some programs need SUID wrappers, can be configured further or are # started in user sessions. @@ -333,15 +339,29 @@ reverse_proxy http://127.0.0.1:8085 ''; }; - # virtualHosts = { - # "mail.cochrun.xyz".extraConfig = '' - # ''; - # }; + virtualHosts = { + "inv.cochrun.xyz".extraConfig = '' + reverse_proxy http://127.0.0.1:3000 + ''; + }; + virtualHosts = { + "mail.cochrun.xyz".extraConfig = '' + tls internal { + key_type rsa2048 + } + respond "Hello DMS" + '' ; + }; virtualHosts = { "jelly.cochrun.xyz".extraConfig = '' reverse_proxy localhost:8096 ''; }; + virtualHosts = { + "tubesync.cochrun.xyz".extraConfig = '' + reverse_proxy localhost:4848 + ''; + }; #virtualHosts = { # "livingseedco.shop".extraConfig = '' # reverse_proxy localhost:8282 @@ -479,6 +499,7 @@ # networking.firewall.allowedUDPPorts = [ ... ]; # Or disable the firewall altogether. networking.firewall.enable = false; + networking.enableIPv6 = true; # Copy the NixOS configuration file and link it from the resulting system # (/run/current-system/configuration.nix). This is useful in case you