mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-06-16 10:05:13 -05:00
34 lines
691 B
Nix
Executable file
34 lines
691 B
Nix
Executable file
{
|
|
flake,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}:
|
|
let
|
|
configPath = ./config;
|
|
extensionsPath = import (configPath + /extensions);
|
|
userKeymapsPath = import (configPath + /userKeymaps);
|
|
userSettingsPath = import (configPath + /userSettings) {
|
|
inherit
|
|
flake
|
|
lib
|
|
pkgs
|
|
;
|
|
};
|
|
extraPackagesPath = import (configPath + /extraPackages) {
|
|
inherit
|
|
pkgs
|
|
;
|
|
};
|
|
packagePath = flake.inputs.zed-editor.packages.${pkgs.system}.default;
|
|
in
|
|
{
|
|
programs.zed-editor = {
|
|
enable = true;
|
|
# package = packagePath;
|
|
extraPackages = extraPackagesPath;
|
|
extensions = extensionsPath;
|
|
userKeymaps = userKeymapsPath;
|
|
userSettings = userSettingsPath;
|
|
};
|
|
}
|