NixOS keychain support is broken
- Dominant language
- Shell
- Stars
- 11.2k
- Forks
- 1.9k
- Avg merge
- 14h 16m
- Merged PRs (30d)
- 6
Description
### Describe the bug
Copilot fails to access the system keychain despite libsecret, GNOME Keyring and Seahorse being installed.
```
$ copilot login
To authenticate, visit https://github.com/login/device and enter code XXXX-XXXX.
Waiting for authorization...
System keychain unavailable. Store token in plaintext config file? (y/N)
```
### Affected version
GitHub Copilot CLI 1.0.32
### Steps to reproduce the behavior
1. Install libsecret, GNOME Keyring, Seahorse, and Copilot CLI
Home Manager:
```
home.packages = with pkgs; [
libsecret
github-copilot-cli
]
```
NixOS:
```
services.gnome.gnome-keyring.enable = true;
programs.seahorse.enable = true;
```
2. `nixos-rebuild switch`, `reboot`
3. Run `copilot login`
### Expected behavior
That Copilot CLI stores the token with a keychain instead of prompting to store it in plaintext.
### Additional context
```
~ nix-info --markdown
- system: `"aarch64-linux"`
- host os: `Linux 6.18.24, NixOS, 26.05 (Yarara), 26.05.20260427.1c3fe55`
- multi-user?: `yes`
- sandbox: `yes`
- version: `nix-env (Nix) 2.34.6`
- channels(root): `"nixos-25.11"`
- nixpkgs: `/nix/store/l61vfkyy0qrnz9bmgx84fa7z3bjzhyp4-source`
~ fastfetch
...
Host: QEMU Virtual Machine (virt-10.0)
Kernel: Linux 6.18.24
Shell: fish 4.6.0
WM: niri 26.04 (Wayland)
Terminal: foot 1.26.1
CPU: Virtualized Apple Silicon (8)
GPU: RedHat Virtio 1.0 GPU
~ command -v secret-tool
/etc/profiles/per-user//bin/secret-tool
```
Contributor guide
Assessment
This issue has not been assessed yet.