mirror of
https://github.com/moons-14/dotfiles.git
synced 2026-10-06 02:18:12 +09:00
zed
This commit is contained in:
@@ -38,6 +38,7 @@
|
||||
./vscode
|
||||
./wayland.nix
|
||||
./yazi.nix
|
||||
./zed
|
||||
./zellij
|
||||
./zoom.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,21 @@
|
||||
{
|
||||
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;
|
||||
};
|
||||
}
|
||||
];
|
||||
}
|
||||
@@ -4,10 +4,13 @@ let
|
||||
in
|
||||
{
|
||||
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 {
|
||||
my.applications.vscode.enable = true;
|
||||
my.applications = {
|
||||
vscode.enable = true;
|
||||
zed.enable = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user