From b3790ffc3b82a079fffe15b7ff5ca65a77b00bde Mon Sep 17 00:00:00 2001 From: Odweta Date: Sun, 18 Jan 2026 10:29:55 +0100 Subject: [PATCH] make syncthing a --user service --- home/users/odweta/syncthing.nix | 14 ++++++++++++++ modules/services/syncthing.nix | 13 ------------- 2 files changed, 14 insertions(+), 13 deletions(-) create mode 100644 home/users/odweta/syncthing.nix delete mode 100644 modules/services/syncthing.nix diff --git a/home/users/odweta/syncthing.nix b/home/users/odweta/syncthing.nix new file mode 100644 index 0000000..516743e --- /dev/null +++ b/home/users/odweta/syncthing.nix @@ -0,0 +1,14 @@ +{ pkgs, ... }: + +{ + # Enable Syncthing as a user service + programs.syncthing = { + enable = true; + autoStart = false; + dataDir = "$HOME/.config/syncthing"; # default location + gui = { + enable = true; + address = "127.0.0.1:8384"; # localhost GUI + }; + }; +} diff --git a/modules/services/syncthing.nix b/modules/services/syncthing.nix deleted file mode 100644 index 253df55..0000000 --- a/modules/services/syncthing.nix +++ /dev/null @@ -1,13 +0,0 @@ -{ config, pkgs, ... }: - -{ - # Enable Syncthing systemd service for a user - services.syncthing.enable = true; - - # Specify the system user who will run Syncthing - services.syncthing.user = "odweta"; - - # Optional: start automatically at boot - services.syncthing.enableAutostart = false; -} -