mirror of
https://github.com/moons-14/dotfiles.git
synced 2026-10-07 22:44:10 +09:00
Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6ec1f5762a | ||
|
|
ac6d333af8 |
@@ -38,6 +38,7 @@
|
|||||||
./vscode
|
./vscode
|
||||||
./wayland.nix
|
./wayland.nix
|
||||||
./yazi.nix
|
./yazi.nix
|
||||||
|
./zed
|
||||||
./zellij
|
./zellij
|
||||||
./zoom.nix
|
./zoom.nix
|
||||||
./zoxide.nix
|
./zoxide.nix
|
||||||
|
|||||||
@@ -0,0 +1,21 @@
|
|||||||
|
{
|
||||||
|
lib,
|
||||||
|
config,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
let
|
||||||
|
cfg = config.my.applications.zed;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
./home.nix
|
||||||
|
];
|
||||||
|
|
||||||
|
options.my.applications.zed = {
|
||||||
|
enable = lib.mkEnableOption "Zed code editor";
|
||||||
|
};
|
||||||
|
|
||||||
|
config = lib.mkIf cfg.enable {
|
||||||
|
my.applications.zed.homeManager.enable = lib.mkDefault true;
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,62 @@
|
|||||||
|
{
|
||||||
|
lib,
|
||||||
|
config,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
let
|
||||||
|
cfg = config.my.applications.zed.homeManager;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options.my.applications.zed.homeManager = {
|
||||||
|
enable = lib.mkEnableOption "Zed home-manager configuration";
|
||||||
|
};
|
||||||
|
|
||||||
|
config.home-manager.sharedModules = [
|
||||||
|
{
|
||||||
|
config = lib.mkIf cfg.enable {
|
||||||
|
programs.zed-editor = {
|
||||||
|
enable = true;
|
||||||
|
mutableUserSettings = false;
|
||||||
|
|
||||||
|
userSettings = {
|
||||||
|
agent = {
|
||||||
|
flexible = true;
|
||||||
|
favorite_models = [ ];
|
||||||
|
model_parameters = [ ];
|
||||||
|
};
|
||||||
|
|
||||||
|
project_panel.dock = "left";
|
||||||
|
|
||||||
|
telemetry = {
|
||||||
|
diagnostics = false;
|
||||||
|
metrics = false;
|
||||||
|
};
|
||||||
|
|
||||||
|
vim_mode = true;
|
||||||
|
|
||||||
|
agent_servers = {
|
||||||
|
github-copilot-cli.type = "registry";
|
||||||
|
codex-acp.type = "registry";
|
||||||
|
claude-acp.type = "registry";
|
||||||
|
};
|
||||||
|
|
||||||
|
icon_theme = {
|
||||||
|
mode = "dark";
|
||||||
|
light = "Zed (Default)";
|
||||||
|
dark = "Zed (Default)";
|
||||||
|
};
|
||||||
|
|
||||||
|
ui_font_size = 18;
|
||||||
|
buffer_font_size = 20;
|
||||||
|
|
||||||
|
theme = {
|
||||||
|
mode = "dark";
|
||||||
|
light = "Dracula";
|
||||||
|
dark = "Dracula";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
];
|
||||||
|
}
|
||||||
@@ -4,10 +4,13 @@ let
|
|||||||
in
|
in
|
||||||
{
|
{
|
||||||
options.my.features.gui.editor = {
|
options.my.features.gui.editor = {
|
||||||
enable = lib.mkEnableOption "GUI code editor (VSCode)";
|
enable = lib.mkEnableOption "GUI code editors (VSCode and Zed)";
|
||||||
};
|
};
|
||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
my.applications.vscode.enable = true;
|
my.applications = {
|
||||||
|
vscode.enable = true;
|
||||||
|
zed.enable = true;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user