If you run IntelliJ IDEA (or any JetBrains IDE) on NixOS and installed the GitHub Copilot plugin, you may encounter a frustrating error where the plugin reports it’s “getting login screen” and never completes the OAuth flow.

Why this happens

What fixed it for me

  1. Add Node.js to your NixOS system configuration so it’s available to graphical apps launched from your session. Edit /etc/nixos/configuration.nix (or your common configuration) and add Node.js to environment.systemPackages:
# /etc/nixos/configuration.nix (excerpt)
{ pkgs, ... }:
{
  environment.systemPackages = with pkgs; [ nodejs ];
}
  1. Rebuild the system and switch to the new configuration:
sudo nixos-rebuild switch
  1. Restart your desktop session (or at least restart IntelliJ IDEA). Launch IntelliJ and try the Copilot sign-in flow again. The plugin should now be able to spawn the helper and open the login flow.

Verifying the fix

which node
node --version

Troubleshooting tips