diff options
Diffstat (limited to 'hosts')
-rw-r--r-- | hosts/laurel/configuration.nix | 69 |
1 files changed, 54 insertions, 15 deletions
diff --git a/hosts/laurel/configuration.nix b/hosts/laurel/configuration.nix index 84e5a83..61d8ed1 100644 --- a/hosts/laurel/configuration.nix +++ b/hosts/laurel/configuration.nix | |||
@@ -63,7 +63,7 @@ | |||
63 | 63 | ||
64 | users.users.op = { | 64 | users.users.op = { |
65 | isNormalUser = true; | 65 | isNormalUser = true; |
66 | extraGroups = [ "wheel" "tty" ]; | 66 | extraGroups = [ "wheel" "tty" "syncthing" ]; |
67 | home = "/home/op"; | 67 | home = "/home/op"; |
68 | openssh.authorizedKeys.keys = [ | 68 | openssh.authorizedKeys.keys = [ |
69 | "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIG4oThdAy5wQtzCarxDPuzWX6ImYw0c1QfkF0+wZNE6o np@myrtle" | 69 | "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIG4oThdAy5wQtzCarxDPuzWX6ImYw0c1QfkF0+wZNE6o np@myrtle" |
@@ -77,7 +77,7 @@ | |||
77 | }; | 77 | }; |
78 | 78 | ||
79 | services.invidious = { | 79 | services.invidious = { |
80 | enable = true; | 80 | enable = false; |
81 | port = 3333; | 81 | port = 3333; |
82 | domain = "tube.laurel"; | 82 | domain = "tube.laurel"; |
83 | settings = { | 83 | settings = { |
@@ -114,18 +114,6 @@ | |||
114 | }; | 114 | }; |
115 | }; | 115 | }; |
116 | 116 | ||
117 | services.podgrab = { | ||
118 | enable = true; | ||
119 | port = 3434; | ||
120 | }; | ||
121 | services.nginx.virtualHosts."podcast.laurel" = { | ||
122 | listen = [{ port = 80; addr = "0.0.0.0"; }]; | ||
123 | locations."/" = { | ||
124 | proxyPass = "http://127.0.0.1:${builtins.toString config.services.podgrab.port}"; | ||
125 | proxyWebsockets = true; | ||
126 | }; | ||
127 | }; | ||
128 | |||
129 | services.miniflux = { | 117 | services.miniflux = { |
130 | enable = true; | 118 | enable = true; |
131 | adminCredentialsFile = "/etc/miniflux/admin"; | 119 | adminCredentialsFile = "/etc/miniflux/admin"; |
@@ -152,7 +140,7 @@ | |||
152 | }; | 140 | }; |
153 | 141 | ||
154 | services.matrix-conduit = { | 142 | services.matrix-conduit = { |
155 | enable = true; | 143 | enable = false; |
156 | settings = { | 144 | settings = { |
157 | global = { | 145 | global = { |
158 | allow_encryption = true; | 146 | allow_encryption = true; |
@@ -166,6 +154,35 @@ | |||
166 | }; | 154 | }; |
167 | }; | 155 | }; |
168 | }; | 156 | }; |
157 | services.mautrix-whatsapp = { | ||
158 | enable = true; | ||
159 | settings = { | ||
160 | homeserver = { | ||
161 | address = "http://localhost:6197"; | ||
162 | domain = "oppi.li"; | ||
163 | }; | ||
164 | appservice = { }; | ||
165 | bridge = { | ||
166 | encryption = { | ||
167 | allow = true; | ||
168 | default = true; | ||
169 | require = true; | ||
170 | }; | ||
171 | history_sync = { | ||
172 | request_full_sync = true; | ||
173 | }; | ||
174 | mute_bridging = true; | ||
175 | permissions = { | ||
176 | "*" = "user"; | ||
177 | }; | ||
178 | private_chat_portal_meta = true; | ||
179 | provisioning = { | ||
180 | shared_secret = "disable"; | ||
181 | }; | ||
182 | }; | ||
183 | |||
184 | }; | ||
185 | }; | ||
169 | 186 | ||
170 | services.radicale = { | 187 | services.radicale = { |
171 | enable = true; | 188 | enable = true; |
@@ -185,6 +202,28 @@ | |||
185 | }; | 202 | }; |
186 | }; | 203 | }; |
187 | 204 | ||
205 | services.syncthing = { | ||
206 | enable = true; | ||
207 | dataDir = "/syncthing"; | ||
208 | }; | ||
209 | services.nginx.virtualHosts."sync.laurel" = { | ||
210 | listen = [{ port = 80; addr = "0.0.0.0"; }]; | ||
211 | locations."/" = { | ||
212 | proxyPass = "http://127.0.0.1:8384"; | ||
213 | }; | ||
214 | }; | ||
215 | |||
216 | services.readit = { | ||
217 | enable = true; | ||
218 | port = 9495; | ||
219 | }; | ||
220 | services.nginx.virtualHosts."read.laurel" = { | ||
221 | listen = [{ port = 80; addr = "0.0.0.0"; }]; | ||
222 | locations."/" = { | ||
223 | proxyPass = "http://127.0.0.1:9495"; | ||
224 | }; | ||
225 | }; | ||
226 | |||
188 | 227 | ||
189 | nix.settings.experimental-features = [ "nix-command" "flakes" ]; | 228 | nix.settings.experimental-features = [ "nix-command" "flakes" ]; |
190 | 229 | ||