From 9780b5cbf94e423fe2fbe820dbcda6f22b9b83dd Mon Sep 17 00:00:00 2001 From: serenity-F Date: Fri, 2 Oct 2026 21:15:49 +1000 Subject: [PATCH] update: added preliminary syncthing module --- modules/features/connectivity/syncthing.nix | 44 +++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 modules/features/connectivity/syncthing.nix diff --git a/modules/features/connectivity/syncthing.nix b/modules/features/connectivity/syncthing.nix new file mode 100644 index 0000000..6c4b4b1 --- /dev/null +++ b/modules/features/connectivity/syncthing.nix @@ -0,0 +1,44 @@ +# base level inputs and arguments, should only ever be self and inputs +{ self, inputs, ... }: + +{ + + # module name declaration + flake.modules.nixos.syncthing = + + # function inputs and arguments + { pkgs, user-parts, ... }: + + # system level configuration options + { + + # import system level module for home manager functionality + imports = [ inputs.home-manager.nixosModules.home-manager ]; + + # opens network ports for syncthing + networking.firewall = { + allowedTCPPorts = [ 8384 ]; + allowedUDPPorts = [ 8834 ]; + }; + + # system level syncthing options go here + services.syncthing = { + #enable = true; + }; + + # user level configuration options + home-manager.users.${user-parts.user.username} = { + + # import home manager modules here + #imports = [ ]; + + # user level syncthing options go here + services.syncthing = { + #enable = true; + }; + + }; + + }; + +}