Skip to content

Commit

Permalink
Install vscode in macOS via nixpkgs (#882)
Browse files Browse the repository at this point in the history
* Install vscode in macOS via nixpkgs

* Prefer vscode in macOS again

I'm not much familiar to zed yet, so I prefer experimented one for darwin
  • Loading branch information
kachick authored Oct 22, 2024
1 parent 55a8ef3 commit 685f6ab
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions home-manager/darwin.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,12 @@ lib.mkMerge [
(lib.mkIf pkgs.stdenv.isDarwin {
home = {
sessionVariables = {
# * Do not specify Nix store path for zed in macOS
# https://github.com/NixOS/nixpkgs/blob/bba8dffd3135f35810e9112c40ee621f4ede7cca/pkgs/by-name/ze/zed-editor/package.nix#L217-L219
# * `cli: install` action installs into this path in macOS
VISUAL = "zed --wait";
# ## If you prefer zed
# * Do not specify Nix store path for zed in macOS
# https://github.com/NixOS/nixpkgs/blob/bba8dffd3135f35810e9112c40ee621f4ede7cca/pkgs/by-name/ze/zed-editor/package.nix#L217-L219
# * `cli: install` action installs into this path in macOS
# VISUAL = "zed --wait";
VISUAL = lib.getExe edge-pkgs.vscode;

BROWSER = "open";
};
Expand Down Expand Up @@ -55,6 +57,8 @@ lib.mkMerge [

edge-pkgs.podman-desktop # Useable since https://github.com/NixOS/nixpkgs/pull/343648

edge-pkgs.vscode # Keep latest as possible

edge-pkgs.signal-desktop # Useable since https://github.com/NixOS/nixpkgs/pull/348165

homemade-pkgs.maccy
Expand Down

0 comments on commit 685f6ab

Please sign in to comment.