feat(home): Syncthing

This commit is contained in:
punkfairie 2024-11-16 21:29:25 -08:00
parent a2f9247f5d
commit 8da17cb0d5
Signed by: punkfairie
GPG key ID: A509E8F77FB9D696
3 changed files with 33 additions and 12 deletions

View file

@ -54,6 +54,7 @@ in
clipboard = enabled; clipboard = enabled;
# TODO: bundle this with the WM under xorg # TODO: bundle this with the WM under xorg
dunst = enabled; dunst = enabled;
syncthing = enabled;
}; };
xorg = { xorg = {
xsession = enabled; xsession = enabled;

View file

@ -0,0 +1,32 @@
{
lib,
config,
namespace,
pkgs,
...
}:
let
inherit (lib) mkIf;
inherit (lib.${namespace}) mkEnableModule;
cfg = config.${namespace}.services.syncthing;
in
{
options = mkEnableModule "services.syncthing";
config = mkIf cfg.enable {
home.packages = [
config.services.syncthing.tray.package
];
services.syncthing = {
enable = true;
tray = {
enable = true;
command = "syncthingtray";
package = pkgs.syncthingtray-minimal;
};
};
};
}

View file

@ -1,12 +0,0 @@
{ pkgs, ... }:
{
services.syncthing = {
enable = true;
tray = {
enable = true;
command = "syncthingtray";
package = pkgs.syncthingtray-minimal;
};
};
}