From 667ae0969d82c8c79a27ba4c043918ddffbd5de2 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Thu, 21 Apr 2022 17:47:57 -0700 Subject: syncthing: let's run it from home-manager --- home/syncthing/default.nix | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 home/syncthing/default.nix (limited to 'home') diff --git a/home/syncthing/default.nix b/home/syncthing/default.nix new file mode 100644 index 0000000..4e8e4f3 --- /dev/null +++ b/home/syncthing/default.nix @@ -0,0 +1,14 @@ +{ lib, config, pkgs, ... }: +let cfg = config.my.home.syncthing; +in { + options.my.home.syncthing = with lib; { + enable = mkEnableOption "syncthing configuration"; + }; + + config.home = { + services.syncthing = { + enable = true; + openDefaultPorts = true; + }; + }; +} -- cgit 1.4.1