Use zed from nixpkgs instead of upstream zed

This commit is contained in:
Greg Hellings
2024-12-24 00:29:25 -06:00
parent a09d2ee561
commit db6b531ada
5 changed files with 24 additions and 2 deletions
+2 -1
View File
@@ -2,10 +2,11 @@
{ {
greg = { greg = {
vscodium = true;
development = true; development = true;
gnome = true; gnome = true;
gui = true; gui = true;
vscodium = true;
zed = true;
}; };
home.packages = with pkgs; [ home.packages = with pkgs; [
cargo cargo
+1
View File
@@ -7,6 +7,7 @@
sway = false; sway = false;
gnome = false; gnome = false;
vscodium = true; vscodium = true;
zed = true;
}; };
home = { home = {
-1
View File
@@ -62,7 +62,6 @@
gh-personal = "$GH_CONFIG_DIR=\"${config.home.homeDirectory}/.config/gh/personal\" gh"; gh-personal = "$GH_CONFIG_DIR=\"${config.home.homeDirectory}/.config/gh/personal\" gh";
ls = "ls --color"; ls = "ls --color";
ll = "ls -l --color"; ll = "ls -l --color";
zed = "nix run \"github:zed-industries/zed/v0.164.x\"";
# Tailscale related ones # Tailscale related ones
tsup = "sudo tailscale up"; tsup = "sudo tailscale up";
+1
View File
@@ -10,5 +10,6 @@
./sway.nix ./sway.nix
./vscodium.nix ./vscodium.nix
./xonsh.nix ./xonsh.nix
./zed.nix
]; ];
} }
+20
View File
@@ -0,0 +1,20 @@
{
pkgs,
config,
lib,
...
}:
let
cfg = config.greg.zed;
in
{
options.greg.zed = lib.mkEnableOption "Whether to install the Zed editor";
config = lib.mkIf cfg {
home.packages = with pkgs; [
nil
zed-editor
];
};
}