aboutsummaryrefslogtreecommitdiff
path: root/hosts/laurel/configuration.nix
diff options
context:
space:
mode:
authorop <[email protected]>2024-04-27 21:31:35 +0100
committerop <[email protected]>2024-04-27 21:31:35 +0100
commit3dc736f1fac7a8ece7dcda8d497a6e274e187dc0 (patch)
tree1984de24306ee62b1eff2584270c63009322a530 /hosts/laurel/configuration.nix
parent002cb50ba3bff816beffc0a679217738d0d8fea9 (diff)
laurel: add conduit homeserver
Diffstat (limited to 'hosts/laurel/configuration.nix')
-rw-r--r--hosts/laurel/configuration.nix18
1 files changed, 17 insertions, 1 deletions
diff --git a/hosts/laurel/configuration.nix b/hosts/laurel/configuration.nix
index 541f185..29864cf 100644
--- a/hosts/laurel/configuration.nix
+++ b/hosts/laurel/configuration.nix
@@ -20,7 +20,7 @@
20 # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant. 20 # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
21 # networking.networkmanager.enable = true; # Easiest to use and most distros use this by default. 21 # networking.networkmanager.enable = true; # Easiest to use and most distros use this by default.
22 networking.hostName = "laurel"; 22 networking.hostName = "laurel";
23 networking.firewall.allowedTCPPorts = [ 80 443 ]; 23 networking.firewall.allowedTCPPorts = [ 80 443 6197 ];
24 24
25 time.timeZone = "Europe/London"; 25 time.timeZone = "Europe/London";
26 i18n.defaultLocale = "en_US.UTF-8"; 26 i18n.defaultLocale = "en_US.UTF-8";
@@ -140,6 +140,22 @@
140 }; 140 };
141 }; 141 };
142 142
143 services.matrix-conduit = {
144 enable = true;
145 settings = {
146 global = {
147 allow_encryption = true;
148 allow_federation = true;
149 allow_registration = false;
150 database_backend = "rocksdb";
151 server_name = "oppi.li";
152 address = "0.0.0.0";
153 port = 6197;
154 enable_lightning_bolt = false;
155 };
156 };
157 };
158
143 159
144 nix.settings.experimental-features = [ "nix-command" "flakes" ]; 160 nix.settings.experimental-features = [ "nix-command" "flakes" ];
145 161