summaryrefslogtreecommitdiff
path: root/home/syncthing
diff options
context:
space:
mode:
authorAlejandro Soto <alejandro@34project.org>2025-01-25 17:17:25 -0600
committerAlejandro Soto <alejandro@34project.org>2025-01-25 17:17:25 -0600
commitc64a88251a81fddf666106fcc1a5fdc6594b0b10 (patch)
tree92a50e584f3f26133fcf8040b90db10bbee7487e /home/syncthing
parent26f01419f93be1b5038400a778428f8603b4c4f1 (diff)
home, sys: enable syncthing as user service
Diffstat (limited to 'home/syncthing')
-rw-r--r--home/syncthing/default.nix15
1 files changed, 15 insertions, 0 deletions
diff --git a/home/syncthing/default.nix b/home/syncthing/default.nix
new file mode 100644
index 0000000..e234c42
--- /dev/null
+++ b/home/syncthing/default.nix
@@ -0,0 +1,15 @@
+{ config, lib, ... }:
+with lib; let
+ cfg = config.local.syncthing;
+in
+{
+ options.local.syncthing = {
+ enable = mkEnableOption "syncthing";
+ };
+
+ config = mkIf cfg.enable {
+ services.syncthing = {
+ enable = true;
+ };
+ };
+}