mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-12-07 13:32:15 -06:00
35 lines
675 B
Nix
Executable file
35 lines
675 B
Nix
Executable file
{
|
|
config,
|
|
flake,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}:
|
|
let
|
|
configPath = ./config;
|
|
extensionsPath = import (configPath + /extensions);
|
|
userKeymapsPath = import (configPath + /userKeymaps);
|
|
userSettingsPath = import (configPath + /userSettings) {
|
|
inherit
|
|
config
|
|
flake
|
|
lib
|
|
pkgs
|
|
;
|
|
};
|
|
packagePath = flake.inputs.zed-editor.packages.${pkgs.system}.default;
|
|
in
|
|
{
|
|
programs.zed-editor = {
|
|
enable = true;
|
|
package = packagePath;
|
|
extensions = extensionsPath;
|
|
userKeymaps = userKeymapsPath;
|
|
userSettings = userSettingsPath;
|
|
};
|
|
home.packages = builtins.attrValues {
|
|
inherit (pkgs)
|
|
zed-discord-presence
|
|
;
|
|
};
|
|
}
|