about summary refs log tree commit diff
path: root/home
diff options
context:
space:
mode:
Diffstat (limited to 'home')
-rw-r--r--home/syncthing/default.nix14
1 files changed, 14 insertions, 0 deletions
diff --git a/home/syncthing/default.nix b/home/syncthing/default.nix
new file mode 100644
index 0000000..4e8e4f3
--- /dev/null
+++ b/home/syncthing/default.nix
@@ -0,0 +1,14 @@
+{ lib, config, pkgs, ... }:
+let cfg = config.my.home.syncthing;
+in {
+  options.my.home.syncthing = with lib; {
+    enable = mkEnableOption "syncthing configuration";
+  };
+
+  config.home = {
+    services.syncthing = {
+      enable = true;
+      openDefaultPorts = true;
+    };
+  };
+}