Use home-manager for syncthing
This commit is contained in:
parent
3cd4701bdb
commit
d30311bda1
|
@ -1,14 +1,19 @@
|
||||||
{ config, pkgs, unstable, ... }:
|
{ config, pkgs, unstable, ... }:
|
||||||
{
|
{
|
||||||
# Enable synthing service and tray
|
|
||||||
services.syncthing = {
|
|
||||||
enable = true;
|
|
||||||
user = "nathan";
|
|
||||||
configDir = "/home/nathan/.config/syncthing";
|
|
||||||
};
|
|
||||||
# Install synthing and syncthing-tray
|
# Install synthing and syncthing-tray
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
syncthing
|
syncthing
|
||||||
unstable.syncthingtray
|
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;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue