dotfiles/modules/home/gui/apps/code/zed/default.nix

36 lines
675 B
Nix
Raw Normal View History

2025-10-01 19:51:55 -05:00
{
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;
2025-10-03 16:18:55 -05:00
package = packagePath;
2025-10-01 19:51:55 -05:00
extensions = extensionsPath;
userKeymaps = userKeymapsPath;
userSettings = userSettingsPath;
};
2025-10-03 16:18:55 -05:00
home.packages = builtins.attrValues {
inherit (pkgs)
zed-discord-presence
;
};
2025-10-01 19:51:55 -05:00
}