Use zed from nixpkgs instead of upstream zed
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -7,6 +7,7 @@
|
|||||||
sway = false;
|
sway = false;
|
||||||
gnome = false;
|
gnome = false;
|
||||||
vscodium = true;
|
vscodium = true;
|
||||||
|
zed = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
home = {
|
home = {
|
||||||
|
|||||||
@@ -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";
|
||||||
|
|||||||
@@ -10,5 +10,6 @@
|
|||||||
./sway.nix
|
./sway.nix
|
||||||
./vscodium.nix
|
./vscodium.nix
|
||||||
./xonsh.nix
|
./xonsh.nix
|
||||||
|
./zed.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user