mirror of
https://github.com/Swarsel/.dotfiles.git
synced 2025-12-06 09:07:21 +01:00
feat[client]: initialize syncthingtray on install
This commit is contained in:
parent
f950ea97be
commit
c098800c79
9 changed files with 326 additions and 19 deletions
|
|
@ -2,12 +2,15 @@
|
|||
let
|
||||
inherit (config.swarselsystems) mainUser homeDir;
|
||||
devices = config.swarselsystems.syncthing.syncDevices;
|
||||
servicePort = 8384;
|
||||
in
|
||||
{
|
||||
options.swarselmodules.syncthing = lib.mkEnableOption "syncthing config";
|
||||
config = lib.mkIf config.swarselmodules.syncthing {
|
||||
services.syncthing = {
|
||||
enable = true;
|
||||
systemService = true;
|
||||
guiAddress = "127.0.0.1:${builtins.toString servicePort}";
|
||||
package = pkgs.syncthing;
|
||||
user = mainUser;
|
||||
dataDir = homeDir;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue