mirror of
https://github.com/Jokiller230/puzzlevision.git
synced 2025-09-09 12:20:04 +00:00
73 lines
1.6 KiB
Nix
73 lines
1.6 KiB
Nix
{
|
|
lib,
|
|
pkgs,
|
|
self,
|
|
config,
|
|
osConfig,
|
|
...
|
|
}: 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 {
|
|
sops.secrets.wakatime-cfg = {
|
|
format = "binary";
|
|
sopsFile = "${self.outPath}/${osConfig.networking.hostname}/secrets/wakatime.cfg";
|
|
path = "/home/${config.home.homeDirectory}/.wakatime.cfg";
|
|
};
|
|
|
|
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];
|
|
};
|
|
};
|
|
}
|