Update system packages and home configuration

This commit is contained in:
2025-10-17 01:20:53 +02:00
parent efb8dcda36
commit 873e9fd4e7
24 changed files with 189 additions and 263 deletions

View File

@@ -1,124 +1,61 @@
{ pkgs, lib, ... }:
{ pkgs, ... }:
{
programs.zed-editor = {
enable = true;
package = pkgs.zed-editor;
installRemoteServer = true;
extensions = [
"nix"
"one-dark-pro-monokai-darker"
"toml"
"superhtml"
"dockerfile"
"docker-compose"
"git-firefly"
"vue"
"astro"
"docker-compose"
"nix"
"csv"
"rainbow-csv"
"vscode-icons"
"codebook"
"python-requirements"
"one-dark-pro-monokai-darker"
"hyprlang"
"json5"
"html-jinja"
"deputy"
];
extraPackages = [ ];
userSettings = {
assistant = {
enabled = true;
version = "2";
default_open_ai_model = null;
### PROVIDER OPTIONS
### zed.dev models { claude-3-5-sonnet-latest } requires github connected
### anthropic models { claude-3-5-sonnet-latest claude-3-haiku-latest claude-3-opus-latest } requires API_KEY
### copilot_chat models { gpt-4o gpt-4 gpt-3.5-turbo o1-preview } requires github connected
agent = {
always_allow_tool_actions = true;
default_profile = "ask";
default_model = {
provider = "zed.dev";
model = "claude-3-5-sonnet-latest";
};
# inline_alternatives = [
# {
# provider = "copilot_chat";
# model = "gpt-3.5-turbo";
# }
# ];
};
node = {
path = lib.getExe pkgs.nodejs;
npm_path = lib.getExe' pkgs.nodejs "npm";
};
hour_format = "hour24";
auto_update = false;
terminal = {
alternate_scroll = "off";
blinking = "off";
copy_on_select = false;
dock = "bottom";
detect_venv = {
on = {
directories = [
".env"
"env"
".venv"
"venv"
];
activate_script = "default";
};
};
# env = {
# TERM = "alacritty";
# };
font_family = "FiraCode Nerd Font";
font_features = null;
font_size = null;
line_height = "comfortable";
option_as_meta = false;
button = false;
shell = "system";
#{
# program = "zsh";
#};
toolbar = {
title = true;
};
working_directory = "current_project_directory";
};
# lsp = {
# rust-analyzer = {
# binary = {
# path = lib.getExe pkgs.rust-analyzer;
# path_lookup = true;
# };
# };
# nix = {
# binary = {
# path_lookup = true;
# };
# };
# };
languages = {
"HTML" = {
"language_servers" = [
"vscode-html-language-server"
"superhtml"
];
"formatter" = {
"language_server" = {
"name" = "superhtml";
};
};
provider = "anthropic";
model = "claude-sonnet-4-latest";
};
};
vim_mode = false;
load_direnv = "shell_hook";
base_keymap = "VSCode";
theme = {
mode = "system";
light = "One Dark Pro Monokai Darker Theme";
dark = "One Dark Pro Monokai Darker Theme";
telemetry = {
diagnostics = false;
metrics = false;
};
show_whitespaces = "all";
icon_theme = "VSCode Icons (Dark)";
ui_font_size = 16;
buffer_font_size = 16;
buffer_font_size = 15;
theme = {
mode = "dark";
light = "One Light";
dark = "One Dark Pro Monokai Darker";
};
languages = {
Python = {
language_servers = [ "!basedpyright" ];
};
YAML = {
tab_size = 2;
};
};
};
};
}