Nix configurations for my personal machines (Linux & macOS)
at main 582 B view raw
1{ 2 delib, 3 lib, 4 homeConfig, 5 pkgs, 6 ... 7}: 8delib.module { 9 name = "programs.syncthing"; 10 11 options = delib.singleEnableOption true; 12 13 home.ifEnabled = { 14 services.syncthing = { 15 enable = true; 16 tray.enable = true; 17 tray.package = pkgs.syncthingtray; 18 }; 19 20 # Fix syncthingtray complaining about the tray not existing, because of the custom tray service above. 21 systemd.user.services.syncthingtray.Service.ExecStart = 22 lib.mkForce "${homeConfig.services.syncthing.tray.package}/bin/${homeConfig.services.syncthing.tray.command} --wait"; 23 }; 24}