summaryrefslogtreecommitdiff
path: root/Biz/Cloud/Comms
diff options
context:
space:
mode:
authorBen Sima <ben@bsima.me>2024-04-01 13:30:45 -0400
committerBen Sima <ben@bsima.me>2024-04-01 13:30:45 -0400
commitdb373a8c727cad91d375b40a6c70b11ed73bdafb (patch)
treea7ed24e98242b6e38f44cb0c9884718d248cc613 /Biz/Cloud/Comms
parent5c8ef1bf4dff4fc7c6e66a57673a81477bcc850a (diff)
Add nixfmt to Lint.hs
nixfmt is the soon-to-be official formatter for Nix code, as per the NixOS GitHub group. So I figure I should just adopt it without worrying too much about the specifics of the formatting. I just formatted everything in one go, hence the huge diff, oh well.
Diffstat (limited to 'Biz/Cloud/Comms')
-rw-r--r--Biz/Cloud/Comms/Mumble.nix7
-rw-r--r--Biz/Cloud/Comms/Xmpp.nix27
2 files changed, 13 insertions, 21 deletions
diff --git a/Biz/Cloud/Comms/Mumble.nix b/Biz/Cloud/Comms/Mumble.nix
index d728a07..66d21a5 100644
--- a/Biz/Cloud/Comms/Mumble.nix
+++ b/Biz/Cloud/Comms/Mumble.nix
@@ -1,8 +1,7 @@
{ config, ... }:
# mumble and related services
-let
- ports = import ../Ports.nix;
+let ports = import ../Ports.nix;
in {
services.murmur = {
enable = true;
@@ -20,9 +19,7 @@ in {
listening_addr = "127.0.0.1";
listening_port = ports.botamusique;
};
- radio = {
- lofi = "https://live.hunter.fm/lofi_high";
- };
+ radio = { lofi = "https://live.hunter.fm/lofi_high"; };
};
};
}
diff --git a/Biz/Cloud/Comms/Xmpp.nix b/Biz/Cloud/Comms/Xmpp.nix
index af52f3f..ad8649b 100644
--- a/Biz/Cloud/Comms/Xmpp.nix
+++ b/Biz/Cloud/Comms/Xmpp.nix
@@ -11,22 +11,19 @@ let
in {
networking.firewall.allowedTCPPorts = [
# https://prosody.im/doc/ports
- 5000 # file transfer
- 5222 # client connections
- 5269 # server-to-server
- 5280 # http
- 5281 # https
- 5347 # external components
- 5582 # telnet console
+ 5000 # file transfer
+ 5222 # client connections
+ 5269 # server-to-server
+ 5280 # http
+ 5281 # https
+ 5347 # external components
+ 5582 # telnet console
];
services.prosody = {
enable = true;
- package = pkgs.prosody.override {
- withCommunityModules = [
- "conversejs"
- ];
- };
+ package =
+ pkgs.prosody.override { withCommunityModules = [ "conversejs" ]; };
# when i learn how to use security.acme better, and use separate certs, then i
# can fix this group
@@ -36,7 +33,7 @@ in {
inherit ssl;
uploadHttp = {
domain = "upload.${rootDomain}";
- uploadExpireAfter = toString (60*60*24*30); # 30 days, as seconds
+ uploadExpireAfter = toString (60 * 60 * 24 * 30); # 30 days, as seconds
};
modules = {
@@ -129,9 +126,7 @@ in {
};
};
- services.prosody-filer = {
- enable = true;
- };
+ services.prosody-filer = { enable = true; };
services.nginx.virtualHosts."${rootDomain}".locations = {
"/http-bind" = {