{
  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
      ;
  };
}
