Use home-manager for syncthing

This commit is contained in:
Nathan McCarty 2022-04-19 18:19:28 -04:00
parent 3cd4701bdb
commit d30311bda1
Signed by: thatonelutenist
GPG Key ID: D70DA3DD4D1E9F96
1 changed files with 11 additions and 6 deletions

View File

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