summaryrefslogtreecommitdiff
path: root/sys/syncthing/default.nix
diff options
context:
space:
mode:
authorAlejandro Soto <alejandro@34project.org>2025-08-24 18:55:06 -0600
committerAlejandro Soto <alejandro@34project.org>2025-08-24 18:55:06 -0600
commitd7ac88762db111a7962c4e14b5f4e37ab85ccac7 (patch)
tree0c2c8c4383bef74215e3b7c48a2f6b0117f084bc /sys/syncthing/default.nix
parent504589d1035f27b766bd33040b415b2725ece4ca (diff)
tree-wide: reformat using alejandra after enabling trivionomicon
Diffstat (limited to 'sys/syncthing/default.nix')
-rw-r--r--sys/syncthing/default.nix15
1 files changed, 9 insertions, 6 deletions
diff --git a/sys/syncthing/default.nix b/sys/syncthing/default.nix
index b87e683..951ad30 100644
--- a/sys/syncthing/default.nix
+++ b/sys/syncthing/default.nix
@@ -1,20 +1,23 @@
-{ config, lib, ... }:
+{
+ config,
+ lib,
+ ...
+}:
with lib; let
cfg = config.local.syncthing;
-in
-{
+in {
options.local.syncthing = {
enable = mkEnableOption "syncthing server";
openFirewall = mkEnableOption "syncthing firewall rules";
};
config = mkMerge [
- ({
+ {
networking.firewall = {
allowedTCPPorts = optional cfg.openFirewall 22000;
allowedUDPPorts = optional cfg.openFirewall 22000;
};
- })
+ }
(mkIf cfg.enable {
local.syncthing.openFirewall = true;
@@ -33,7 +36,7 @@ in
relay = {
enable = true;
- pools = [ ];
+ pools = [];
providedBy = "${config.networking.hostName}.${config.networking.domain}";
};
};