mirror of
https://github.com/Jokiller230/puzzlevision.git
synced 2025-09-10 04:40:05 +00:00
✨ First installation on real system
✨ Gnome refinements ✨ Zed config updates 🐛 User login issue workaround
This commit is contained in:
parent
87c59890d5
commit
3e6f386f7f
10 changed files with 35 additions and 36 deletions
66
modules/home/apps/zed/default.nix
Normal file
66
modules/home/apps/zed/default.nix
Normal file
|
@ -0,0 +1,66 @@
|
|||
{
|
||||
lib,
|
||||
pkgs,
|
||||
self,
|
||||
config,
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkEnableOption mkIf;
|
||||
inherit (self) namespace;
|
||||
|
||||
cfg = config.${namespace}.apps.zed;
|
||||
in {
|
||||
options.${namespace}.apps.zed = {
|
||||
enable = mkEnableOption "zed, the graphical editor from the future";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
home.packages = with pkgs; [
|
||||
alejandra
|
||||
];
|
||||
|
||||
programs.zed-editor = {
|
||||
enable = true;
|
||||
extensions = ["nix" "catppuccin" "wakatime" "discord_presence" "deno"];
|
||||
|
||||
userSettings = {
|
||||
icon_theme = "Catppuccin Macchiato";
|
||||
theme = {
|
||||
dark = "Catppuccin Macchiato (blue)";
|
||||
light = "Catppuccin Macchiato (blue)";
|
||||
};
|
||||
|
||||
### Disable telemetry
|
||||
telemetry = {
|
||||
metrics = false;
|
||||
};
|
||||
|
||||
### Disable certain AI features
|
||||
features = {
|
||||
copilot = false;
|
||||
};
|
||||
|
||||
### Language specific configurations
|
||||
languages = {
|
||||
### Nix language
|
||||
Nix = {
|
||||
language_servers = ["nixd" "!nil"];
|
||||
};
|
||||
};
|
||||
|
||||
### LSP configurations
|
||||
lsp = {
|
||||
nixd = {
|
||||
initialization_options = {
|
||||
formatting = {
|
||||
command = ["alejandra" "--quiet" "--"];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
extraPackages = with pkgs; [nixd];
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue