···8383 type = types.bool;
8484 default = false;
8585 description = ''
8686- If enabled, start the Bittorrent Sync daemon. Once enabled,
8787- you can interact with the service through the Web UI, or
8888- configure it in your NixOS configuration. Enabling the
8989- <literal>btsync</literal> service also installs a
9090- multi-instance systemd unit which can be used to start
9191- user-specific copies of the daemon. Once installed, you can
9292- use <literal>systemctl start btsync@user</literal> to start
9393- the daemon only for user <literal>user</literal>, using the
9494- configuration file located at
8686+ If enabled, start the Bittorrent Sync daemon. Once enabled, you can
8787+ interact with the service through the Web UI, or configure it in your
8888+ NixOS configuration. Enabling the <literal>btsync</literal> service
8989+ also installs a systemd user unit which can be used to start
9090+ user-specific copies of the daemon. Once installed, you can use
9191+ <literal>systemctl --user start btsync</literal> as your user to start
9292+ the daemon using the configuration file located at
9593 <literal>$HOME/.config/btsync.conf</literal>.
9694 '';
9795 };
···212210 default = "/var/lib/btsync/";
213211 example = "/var/lib/btsync/";
214212 description = ''
215215- Where to store the bittorrent sync files.
213213+ Where BitTorrent Sync will store it's database files (containing
214214+ things like username info and licenses). Generally, you should not
215215+ need to ever change this.
216216 '';
217217 };
218218···311311 };
312312 };
313313314314- systemd.services."btsync@" = with pkgs; {
315315- description = "Bittorrent Sync Service for %i";
314314+ systemd.user.services.btsync = with pkgs; {
315315+ description = "Bittorrent Sync user service";
316316 after = [ "network.target" "local-fs.target" ];
317317 serviceConfig = {
318318 Restart = "on-abort";
319319- User = "%i";
320319 ExecStart =
321320 "${bittorrentSync}/bin/btsync --nodaemon --config %h/.config/btsync.conf";
322321 };