summary refs log tree commit diff
diff options
context:
space:
mode:
authorRory&::Emma <root@rory.gay>2023-07-19 04:33:46 +0000
committerRory&::Emma <root@rory.gay>2023-07-19 04:33:46 +0000
commitf2ad9e980a68c7ce2f3ffd27d84ba9780a21a73c (patch)
treef34510f026efddf0f5bfd6656bd68d4c46065942
parentNginx declarations? (diff)
downloadRory-Open-Architecture-f2ad9e980a68c7ce2f3ffd27d84ba9780a21a73c.tar.xz
Add tmux, enable token reg on synapse
-rwxr-xr-xhost/Rory-synapse/software.nix5
-rwxr-xr-xmodules/base.nix1
2 files changed, 4 insertions, 2 deletions
diff --git a/host/Rory-synapse/software.nix b/host/Rory-synapse/software.nix
index 4b6506c..d194092 100755
--- a/host/Rory-synapse/software.nix
+++ b/host/Rory-synapse/software.nix
@@ -82,10 +82,11 @@
     settings = {
       server_name = "rory.gay";
 
-      enable_registration = false;
+      enable_registration = true;
+      registration_requires_token = true;
       # Alicia - figure this out later...
       #registration_shared_secret = builtins.exec ["cat" "/dev/urandom" "|" "tr" "-dc" "a-zA-Z0-9" "|" "fold" "-w" "256" "|" "head" "-n" "1"];
-      registration_shared_secret_path = "/var/lib/matrix-synapse/registration_shared_secret.txt";
+      #registration_shared_secret_path = "/var/lib/matrix-synapse/registration_shared_secret.txt";
       
       # Alicia - types: https://github.com/NixOS/nixpkgs/blob/release-22.11/nixos/modules/services/matrix/synapse.nix#L410
       listeners = [
diff --git a/modules/base.nix b/modules/base.nix
index ec1e6aa..b0e1d95 100755
--- a/modules/base.nix
+++ b/modules/base.nix
@@ -46,6 +46,7 @@
     kitty.terminfo
     neovim
 #    vimPlugins.vim-nix
+    tmux
   ];
 
   systemd.coredump.extraConfig = lib.mkDefault ''