diff options
Diffstat (limited to 'home/syncthing/default.nix')
| -rw-r--r-- | home/syncthing/default.nix | 15 |
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; + }; + }; +} |
