summaryrefslogtreecommitdiff
path: root/home/syncthing
diff options
context:
space:
mode:
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;
+ };
+ };
+}