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; + }; + }; + }; }