@@ -83,15 +83,13 @@ in
8383 type = types.bool;
8484 default = false;
8585 description = ''
86− If enabled, start the Bittorrent Sync daemon. Once enabled,
87− you can interact with the service through the Web UI, or
88− configure it in your NixOS configuration. Enabling the
89− <literal>btsync</literal> service also installs a
90− multi-instance systemd unit which can be used to start
91− user-specific copies of the daemon. Once installed, you can
92− use <literal>systemctl start btsync@user</literal> to start
93− the daemon only for user <literal>user</literal>, using the
94− configuration file located at
86+ If enabled, start the Bittorrent Sync daemon. Once enabled, you can
87+ interact with the service through the Web UI, or configure it in your
88+ NixOS configuration. Enabling the <literal>btsync</literal> service
89+ also installs a systemd user unit which can be used to start
90+ user-specific copies of the daemon. Once installed, you can use
91+ <literal>systemctl --user start btsync</literal> as your user to start
92+ the daemon using the configuration file located at
9593 <literal>$HOME/.config/btsync.conf</literal>.
9694 '';
9795 };
@@ -212,7 +210,9 @@ in
212210 default = "/var/lib/btsync/";
213211 example = "/var/lib/btsync/";
214212 description = ''
215− Where to store the bittorrent sync files.
213+ Where BitTorrent Sync will store it's database files (containing
214+ things like username info and licenses). Generally, you should not
215+ need to ever change this.
216216 '';
217217 };
218218
@@ -311,12 +311,11 @@ in
311311 };
312312 };
313313
314− systemd.services."btsync@" = with pkgs; {
315− description = "Bittorrent Sync Service for %i";
314+ systemd.user.services.btsync = with pkgs; {
315+ description = "Bittorrent Sync user service";
316316 after = [ "network.target" "local-fs.target" ];
317317 serviceConfig = {
318318 Restart = "on-abort";
319− User = "%i";
320319 ExecStart =
321320 "${bittorrentSync}/bin/btsync --nodaemon --config %h/.config/btsync.conf";
322321 };