make syncthing a --user service

This commit is contained in:
Odweta
2026-01-18 10:29:55 +01:00
parent 28c658ee58
commit b3790ffc3b
2 changed files with 14 additions and 13 deletions
+14
View File
@@ -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
};
};
}
-13
View File
@@ -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;
}