anchor.diff:        };
       };
   
  -    systemd.services."btsync@" = with pkgs; {
  -      description = "Bittorrent Sync Service for %i";
  +    systemd.user.services.btsync = with pkgs; {
  +      description = "Bittorrent Sync user service";
         after       = [ "network.target" "local-fs.target" ];
         serviceConfig = {
           Restart   = "on-abort";
  -        User      = "%i";
           ExecStart =
             "${bittorrentSync}/bin/btsync --nodaemon --config %h/.config/btsync.conf";
         };
  
positive.code:         type = types.bool;
          default = false;
          description = ''
            If enabled, start the Bittorrent Sync daemon. Once enabled,
            you can interact with the service through the Web UI, or
            configure it in your NixOS configuration. Enabling the
            <literal>btsync</literal> service also installs a
            multi-instance systemd unit which can be used to start
            user-specific copies of the daemon. Once installed, you can
            use <literal>systemctl start btsync@user</literal> to start
            the daemon only for user <literal>user</literal>, using the
            configuration file located at
            <literal>$HOME/.config/btsync.conf</literal>.
          '';
        };
  
negative.code:         default = "/var/lib/btsync/";
          example = "/var/lib/btsync/";
          description = ''
            Where BitTorrent Sync will store it's database files (containing
            things like username info and licenses). Generally, you should not
            need to ever change this.
          '';
        };
  
  