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; -} -