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 = {
vscodium = true;
development = true;
gnome = true;
gui = true;
vscodium = true;
zed = true;
};
home.packages = with pkgs; [
cargo
+1
View File
@@ -7,6 +7,7 @@
sway = false;
gnome = false;
vscodium = true;
zed = true;
};
home = {
-1
View File
@@ -62,7 +62,6 @@
gh-personal = "$GH_CONFIG_DIR=\"${config.home.homeDirectory}/.config/gh/personal\" gh";
ls = "ls --color";
ll = "ls -l --color";
zed = "nix run \"github:zed-industries/zed/v0.164.x\"";
# Tailscale related ones
tsup = "sudo tailscale up";
+1
View File
@@ -10,5 +10,6 @@
./sway.nix
./vscodium.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
];
};
}