make syncthing a --user service
This commit is contained in:
@@ -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
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -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;
|
|
||||||
}
|
|
||||||
|
|
||||||
Reference in New Issue
Block a user