summaryrefslogtreecommitdiff
path: root/home
diff options
context:
space:
mode:
Diffstat (limited to 'home')
-rw-r--r--home/default.nix1
-rw-r--r--home/syncthing/default.nix15
2 files changed, 16 insertions, 0 deletions
diff --git a/home/default.nix b/home/default.nix
index 6944180..38dbb60 100644
--- a/home/default.nix
+++ b/home/default.nix
@@ -8,5 +8,6 @@
./environ
./isolation
./mail
+ ./syncthing
];
}
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;
+ };
+ };
+}