feat: starting to install zed

This commit is contained in:
Nick 2025-01-12 14:36:43 -06:00
parent 9ef7554967
commit 616ce7fbca
6 changed files with 102 additions and 1 deletions

77
flake.lock generated
View file

@ -93,6 +93,21 @@
"type": "github" "type": "github"
} }
}, },
"crane_3": {
"locked": {
"lastModified": 1736566337,
"narHash": "sha256-SC0eDcZPqISVt6R0UfGPyQLrI0+BppjjtQ3wcSlk0oI=",
"owner": "ipetkov",
"repo": "crane",
"rev": "9172acc1ee6c7e1cbafc3044ff850c568c75a5a3",
"type": "github"
},
"original": {
"owner": "ipetkov",
"repo": "crane",
"type": "github"
}
},
"direnv": { "direnv": {
"inputs": { "inputs": {
"gomod2nix": "gomod2nix", "gomod2nix": "gomod2nix",
@ -299,6 +314,21 @@
"type": "github" "type": "github"
} }
}, },
"flake-compat_8": {
"locked": {
"lastModified": 1733328505,
"narHash": "sha256-NeCCThCEP3eCl2l/+27kNNK7QrwZB1IJCrXfrbv5oqU=",
"owner": "edolstra",
"repo": "flake-compat",
"rev": "ff81ac966bb2cae68946d5ed5fc4994f96d0ffec",
"type": "github"
},
"original": {
"owner": "edolstra",
"repo": "flake-compat",
"type": "github"
}
},
"flake-parts": { "flake-parts": {
"inputs": { "inputs": {
"nixpkgs-lib": [ "nixpkgs-lib": [
@ -1458,7 +1488,8 @@
"systems": "systems_10", "systems": "systems_10",
"waybar": "waybar", "waybar": "waybar",
"wpaperd": "wpaperd", "wpaperd": "wpaperd",
"yazi": "yazi" "yazi": "yazi",
"zed": "zed"
} }
}, },
"rust-overlay": { "rust-overlay": {
@ -1524,6 +1555,27 @@
"type": "github" "type": "github"
} }
}, },
"rust-overlay_4": {
"inputs": {
"nixpkgs": [
"zed",
"nixpkgs"
]
},
"locked": {
"lastModified": 1736700680,
"narHash": "sha256-9gmWIb8xsycWHEYpd2SiVIAZnUULX6Y+IMMZBcDUCQU=",
"owner": "oxalica",
"repo": "rust-overlay",
"rev": "5d1865c0da63b4c949f383d982b6b43519946e8f",
"type": "github"
},
"original": {
"owner": "oxalica",
"repo": "rust-overlay",
"type": "github"
}
},
"slimlock": { "slimlock": {
"inputs": { "inputs": {
"nixpkgs": [ "nixpkgs": [
@ -1915,6 +1967,29 @@
"type": "github" "type": "github"
} }
}, },
"zed": {
"inputs": {
"crane": "crane_3",
"flake-compat": "flake-compat_8",
"nixpkgs": [
"nixpkgs"
],
"rust-overlay": "rust-overlay_4"
},
"locked": {
"lastModified": 1736689464,
"narHash": "sha256-6XTiX+xlqXyWEwOIMV8ALakU2V74/IU1Dv1D8+3xMT0=",
"owner": "zed-industries",
"repo": "zed",
"rev": "fb650444846a2e08a97ab2ddbc9ea541ce263904",
"type": "github"
},
"original": {
"owner": "zed-industries",
"repo": "zed",
"type": "github"
}
},
"zig": { "zig": {
"inputs": { "inputs": {
"flake-compat": [ "flake-compat": [

View file

@ -67,6 +67,10 @@
url = "github:direnv/direnv"; url = "github:direnv/direnv";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
zed = {
url = "github:zed-industries/zed";
inputs.nixpkgs.follows = "nixpkgs";
};
}; };
outputs = inputs: outputs = inputs:

View file

@ -0,0 +1 @@
{}

View file

@ -0,0 +1 @@
{}

View file

@ -0,0 +1 @@
{}

View file

@ -0,0 +1,19 @@
{
flake,
pkgs,
...
}: let
configPath = ./config;
extensionsPath = import (configPath + /extensions.nix);
userKeymapsPath = import (configPath + /userKeymaps.nix);
userSettingsPath = import (configPath + /userSettings.nix);
packagePath = flake.inputs.zed.packages.${pkgs.system}.zed;
in {
programs.zed-editor = {
enable = true;
package = packagePath;
extensions = extensionsPath;
userKeymaps = userKeymapsPath;
userSettings = userSettingsPath;
};
}