I started a fresh nixOS install today, and after getting vs code up and running I tried to sync GitHub account.
Settings sync cannot be turned on because the current version (1.78.2, b3e4e68a0bc097f0ae7907b217c1119af9e03435) is not compatible with the sync service. Please update before turning on sync.
Looks like this happens when you’ve previously synced from a newer version of vscode, you’re out of luck for stable nixpkgs’ vscode.
Unstable packages 1.82.1, which is almost the latest version, that one might be recent enough to match whatever vscode version you last synced from: NixOS Search
Assuming you use channels, you can grab one specific package from unstable by adding the unstable channel in addition to the stable one (sudo nix-channel --add https://nixos.org/channels/nixos-unstable nixpkgs-unstable), and then installing the package from it, e.g.:
{ pkgs, config, ... }:
let
unstable = import <nixpkgs-unstable> {};
in {
environment.systemPackages = [
unstable.vscode
];
}
Alternatively, use something like home-manager to sync your configuration, if you don’t want to be subject to what appears to be a rather volatile sync service.