mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-08-29 14:27:12 +02:00
- linux: programs.vscode via pkgs-master with gnome-libsecret password store - darwin: visual-studio-code cask + aerospace window rules - idols-ai: persist .vscode and .config/Code (Settings Sync handles extensions) - xdg: code.desktop editor association and vscode:// scheme handler
22 lines
628 B
Nix
22 lines
628 B
Nix
{
|
|
lib,
|
|
pkgs-master,
|
|
...
|
|
}:
|
|
|
|
{
|
|
programs.vscode = {
|
|
# Extensions and settings are managed by VS Code's built-in Settings Sync,
|
|
# not declaratively here (persisted via `.config/Code`, see preservation).
|
|
enable = true;
|
|
package = pkgs-master.vscode.override {
|
|
commandLineArgs = [
|
|
# https://code.visualstudio.com/docs/configure/settings-sync#_recommended-configure-the-keyring-to-use-with-vs-code
|
|
# For use with any package that implements the Secret Service API
|
|
# (for example gnome-keyring, kwallet5, KeepassXC)
|
|
"--password-store=gnome-libsecret"
|
|
];
|
|
};
|
|
};
|
|
}
|