feat: add cursor ai editor

This commit is contained in:
Ryan Yin
2025-04-13 13:32:12 +08:00
parent a69b60bf6e
commit 908656e5d4
2 changed files with 23 additions and 29 deletions
@@ -21,10 +21,11 @@
'' ''
+ (builtins.readFile "${nur-ryan4yin.packages.${pkgs.system}.catppuccin-foot}/catppuccin-mocha.conf"); + (builtins.readFile "${nur-ryan4yin.packages.${pkgs.system}.catppuccin-foot}/catppuccin-mocha.conf");
home.packages = [ home.packages = with pkgs; [
# pkgs.firefox-wayland # firefox-wayland
pkgs.nixpaks.firefox nixpaks.firefox
pkgs.nixpaks.firefox-desktop-item nixpaks.firefox-desktop-item
code-cursor # an AI code editor
]; ];
programs = { programs = {
@@ -65,9 +66,9 @@
# let vscode sync and update its configuration & extensions across devices, using github account. # let vscode sync and update its configuration & extensions across devices, using github account.
userSettings = {}; userSettings = {};
package = package =
(pkgs.vscode.override pkgs.vscode.override
{ {
isInsiders = true; isInsiders = false;
# https://wiki.archlinux.org/title/Wayland#Electron # https://wiki.archlinux.org/title/Wayland#Electron
commandLineArgs = [ commandLineArgs = [
"--ozone-platform-hint=auto" "--ozone-platform-hint=auto"
@@ -82,15 +83,7 @@
# still not works... # still not works...
"--password-store=gnome" # use gnome-keyring as password store "--password-store=gnome" # use gnome-keyring as password store
]; ];
})
.overrideAttrs (oldAttrs: rec {
# Use VSCode Insiders to fix crash: https://github.com/NixOS/nixpkgs/issues/246509
src = builtins.fetchTarball {
url = "https://update.code.visualstudio.com/latest/linux-x64/insider";
sha256 = "0k2sh7rb6mrx9d6bkk2744ry4g17d13xpnhcisk4akl4x7dn6a83";
}; };
version = "latest";
});
}; };
}; };
} }
+1
View File
@@ -158,6 +158,7 @@ in {
"google-chrome" "google-chrome"
"visual-studio-code" "visual-studio-code"
"zed" # zed editor "zed" # zed editor
"cursor" # an AI code editor
"aerospace" # an i3-like tiling window manager for macOS "aerospace" # an i3-like tiling window manager for macOS
"ghostty" # terminal emulator "ghostty" # terminal emulator