From f805c215cc47d7d30a1ef337c74a2ea14d87eeaa Mon Sep 17 00:00:00 2001 From: Jacob Hinkle Date: Tue, 6 Sep 2022 15:31:20 -0400 Subject: [PATCH] Move syncthing to system service on buck --- home/jacob.nix | 2 +- machines/buck/configuration.nix | 2 ++ machines/buck/syncthing.nix | 5 +++++ 3 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 machines/buck/syncthing.nix diff --git a/home/jacob.nix b/home/jacob.nix index d0acbfa..f3c3b18 100644 --- a/home/jacob.nix +++ b/home/jacob.nix @@ -195,7 +195,7 @@ }; }; syncthing = { - enable = true; + enable = false; # cause the tray command to wait for the service and tray manager to start #extraOptions = [ "--wait" ]; tray.enable = false; diff --git a/machines/buck/configuration.nix b/machines/buck/configuration.nix index 2c81195..a3f7b16 100644 --- a/machines/buck/configuration.nix +++ b/machines/buck/configuration.nix @@ -117,6 +117,8 @@ #media-session.enable = true; }; + syncthing = import ./syncthing.nix; + # Enable the X11 windowing system. services.xserver.enable = true; xserver = { enable = true; diff --git a/machines/buck/syncthing.nix b/machines/buck/syncthing.nix new file mode 100644 index 0000000..d1fb85f --- /dev/null +++ b/machines/buck/syncthing.nix @@ -0,0 +1,5 @@ +{ + enable = true; + dataDir = "/home/jacob/Sync"; + #guiAddress = "0.0.0.0:8234"; # for headless +}