From d30311bda1de6b17a65d3e2d9bfca7cd3844f678 Mon Sep 17 00:00:00 2001 From: Nathan McCarty Date: Tue, 19 Apr 2022 18:19:28 -0400 Subject: [PATCH] Use home-manager for syncthing --- applications/syncthing.nix | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/applications/syncthing.nix b/applications/syncthing.nix index 602189f..5a7842f 100644 --- a/applications/syncthing.nix +++ b/applications/syncthing.nix @@ -1,14 +1,19 @@ { config, pkgs, unstable, ... }: { - # Enable synthing service and tray - services.syncthing = { - enable = true; - user = "nathan"; - configDir = "/home/nathan/.config/syncthing"; - }; # Install synthing and syncthing-tray environment.systemPackages = with pkgs; [ syncthing unstable.syncthingtray ]; + # Home manager configuration + home-manager.users.nathan = { + # Enable the service for both syncthing and the tray + services.syncthing = { + enable = true; + tray = { + enable = true; + package = unstable.syncthingtray; + }; + }; + }; }