home/zed: update configuration and remove userTasks option
This commit is contained in:
@@ -58,10 +58,6 @@ let
|
|||||||
in
|
in
|
||||||
{
|
{
|
||||||
options.programs.zed-editor = {
|
options.programs.zed-editor = {
|
||||||
userTasks = lib.mkOption {
|
|
||||||
type = lib.types.listOf lib.types.attrs;
|
|
||||||
default = [ ];
|
|
||||||
};
|
|
||||||
defaultEditor = lib.mkOption {
|
defaultEditor = lib.mkOption {
|
||||||
type = lib.types.bool;
|
type = lib.types.bool;
|
||||||
default = false;
|
default = false;
|
||||||
@@ -85,8 +81,8 @@ in
|
|||||||
agent = {
|
agent = {
|
||||||
enabled = true;
|
enabled = true;
|
||||||
default_model = {
|
default_model = {
|
||||||
provider = "zed.dev";
|
provider = "OpenCode";
|
||||||
model = "claude-haiku-4-5";
|
model = "opencode/kimi-k2.5";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
auto_update = false;
|
auto_update = false;
|
||||||
@@ -210,7 +206,7 @@ in
|
|||||||
edit_predictions = {
|
edit_predictions = {
|
||||||
enabled = true;
|
enabled = true;
|
||||||
mode = "eager";
|
mode = "eager";
|
||||||
provider = "zed";
|
provider = "copilot";
|
||||||
};
|
};
|
||||||
buffer_font_family = "Iosevka Nerd Font";
|
buffer_font_family = "Iosevka Nerd Font";
|
||||||
buffer_font_size = 16;
|
buffer_font_size = 16;
|
||||||
@@ -222,6 +218,13 @@ in
|
|||||||
"tsconfig.*.json"
|
"tsconfig.*.json"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
agent_servers = {
|
||||||
|
OpenCode = {
|
||||||
|
type = "custom";
|
||||||
|
command = lib.getExe pkgs-unstable.opencode;
|
||||||
|
args = [ "acp" ];
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
userKeymaps = [
|
userKeymaps = [
|
||||||
{
|
{
|
||||||
@@ -282,8 +285,6 @@ in
|
|||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
xdg.configFile."zed/tasks.json".text = builtins.toJSON cfg.userTasks;
|
|
||||||
|
|
||||||
home.sessionVariables = lib.mkIf cfg.defaultEditor {
|
home.sessionVariables = lib.mkIf cfg.defaultEditor {
|
||||||
EDITOR = lib.getExe cfg.package;
|
EDITOR = lib.getExe cfg.package;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user