Refactor home modules and update configs

- Remove unused `pkgs` import from hardware and adjust user stateVersion
to 25.11 with updated wheel comment. - Split Bash aliases and functions
into separate modules and rename `bash.nix` to `bash/default.nix` with
imports. - Delete old Bash alias/function files and consolidate them
under the new structure. - Simplify `bat.nix` by removing commented
style lines. - Increase Cava `frame_rate` from 60 to 144 and clean up
legacy color settings. - Refactor Chromium configuration: separate
extensions into `extensions.nix` and use a minimal default module. -
Replace large Kitty config with minimal enable/module and import
`extra-config.nix` and `settings.nix`. - Overhaul Librewolf setup:
extract profiles, extensions, search, and settings into dedicated files.
- Update home `default.nix` imports to reflect new module paths and
remove obsolete references. - Modularize SwayNC by moving settings and
style to separate files. - Add explicit Vesktop package definition. -
Remove old VSCode module; introduce VSCodium with profile-based
extensions, keybindings, and user settings. - Reorganize XDG portal and
desktop entries into modular files. - Rebuild Zed configuration: split
user settings, language models, languages, LSP, extensions, and extra
packages into distinct files.
This commit is contained in:
2025-11-23 19:38:52 +01:00
parent 900b565405
commit 196db56791
48 changed files with 1839 additions and 1809 deletions

View File

@@ -0,0 +1,10 @@
_: {
programs.zed-editor.userSettings.agent = {
always_allow_tool_actions = true;
default_profile = "ask";
default_model = {
provider = "Cerebras";
model = "gpt-oss-120b";
};
};
}

View File

@@ -0,0 +1,27 @@
_: {
programs.zed-editor.userSettings = {
telemetry = {
diagnostics = false;
metrics = false;
};
icon_theme = "VSCode Icons for Zed (Dark)";
ui_font_size = 16;
buffer_font_size = 15;
theme = {
mode = "dark";
light = "One Light";
dark = "One Dark Pro Monokai Darker";
};
diagnostics.inline = {
enabled = true;
max_severity = "error";
};
};
imports = [
./agent.nix
./language-models.nix
./languages.nix
./lsp.nix
];
}

View File

@@ -0,0 +1,43 @@
_: {
programs.zed-editor.userSettings.language_models.openai_compatible."Cerebras" = {
api_url = "https://api.cerebras.ai/v1";
available_models = [
{
name = "qwen-3-235b-a22b-instruct-2507";
display_name = "Qwen 3 235B Instruct";
max_tokens = 65000;
max_output_tokens = 32000;
capabilities = {
tools = true;
images = true;
parallel_tool_calls = true;
prompt_cache_key = false;
};
}
{
name = "llama-3.3-70b";
display_name = "Llama 3.3 70B";
max_tokens = 65000;
max_output_tokens = 8000;
capabilities = {
tools = true;
images = true;
parallel_tool_calls = true;
prompt_cache_key = true;
};
}
{
name = "gpt-oss-120b";
display_name = "OpenAI GPT OSS";
max_tokens = 65000;
max_output_tokens = 32000;
capabilities = {
tools = true;
images = true;
parallel_tool_calls = true;
prompt_cache_key = false;
};
}
];
};
}

View File

@@ -0,0 +1,66 @@
_: {
programs.zed-editor.userSettings.languages = {
Nix.language_servers = [
"nixd"
"!nil"
];
Python.language_servers = ["!basedpyright"];
YAML.tab_size = 2;
JavaScript = {
formatter.language_server.name = "biome";
code_actions_on_format = {
"source.fixAll.biome" = true;
"source.organizeImports.biome" = true;
};
tab_size = 2;
};
TypeScript = {
formatter.language_server.name = "biome";
code_actions_on_format = {
"source.fixAll.biome" = true;
"source.organizeImports.biome" = true;
};
tab_size = 2;
};
Astro = {
formatter.language_server.name = "biome";
code_actions_on_format = {
"source.fixAll.biome" = true;
"source.organizeImports.biome" = true;
};
tab_size = 2;
};
"Vue.js" = {
formatter.language_server.name = "biome";
code_actions_on_format = {
"source.fixAll.biome" = true;
"source.organizeImports.biome" = true;
};
tab_size = 2;
};
JSON = {
formatter.language_server.name = "biome";
code_actions_on_format = {
"source.fixAll.biome" = true;
"source.organizeImports.biome" = true;
};
tab_size = 2;
};
JSONC = {
formatter.language_server.name = "biome";
code_actions_on_format = {
"source.fixAll.biome" = true;
"source.organizeImports.biome" = true;
};
tab_size = 2;
};
CSS = {
formatter.language_server.name = "biome";
code_actions_on_format = {
"source.fixAll.biome" = true;
"source.organizeImports.biome" = true;
};
tab_size = 2;
};
};
}

View File

@@ -0,0 +1,34 @@
{
pkgs,
lib,
username,
host,
...
}: {
programs.zed-editor.userSettings.lsp = {
rust-analyzer = {
binary = {
path = lib.getExe pkgs.bash;
arguments = [
"-c"
"if [ -e flake.nix ]; then nix develop --command rust-analyzer; else rust-analyzer; fi"
];
};
};
nixd = {
initialization_options.formatting.command = [
"alejandra"
"--quiet"
"--"
];
settings = {
nixpkgs.expr = "import <nixpkgs> { }";
formatting.command = ["alejandra"];
options = {
nixos.expr = "(builtins.getFlake (builtins.toString \"/home/${username}/garandos\")).nixosConfigurations.\"${host}\".options";
home-manager.expr = "(builtins.getFlake (builtins.toString \"/home/${username}/garandos\")).nixosConfigurations.\"${host}\".options.home-manager.users.type.getSubOptions []";
};
};
};
};
}