From c64a88251a81fddf666106fcc1a5fdc6594b0b10 Mon Sep 17 00:00:00 2001 From: Alejandro Soto Date: Sat, 25 Jan 2025 17:17:25 -0600 Subject: home, sys: enable syncthing as user service --- home/syncthing/default.nix | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 home/syncthing/default.nix (limited to 'home/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; + }; + }; +} -- cgit v1.2.3