git: add some neat config options

This commit is contained in:
Christoph Hollizeck 2026-02-12 13:13:00 +01:00
parent 19551d4e5b
commit 9a1f7cfe75
Signed by: Daholli
GPG key ID: 249300664F2AF2C7
2 changed files with 96 additions and 11 deletions

View file

@ -49,22 +49,24 @@ topLevel: {
}; };
core = { core = {
fsmonitor = true; fsmonitor = true;
editor = "hx";
}; };
init = { commit.verbose = true;
defaultBranch = "main"; init.defaultBranch = "main";
}; pull.rebase = true;
pull = { fetch = {
rebase = true; prune = true;
}; pruneTags = true;
push = {
autoSetupRemote = true;
}; };
push.autoSetupRemote = true;
rebase = { rebase = {
autoStash = true; autoStash = true;
autoSquash = true;
}; };
safe = { merge.conflictstyle = "zdiff3";
directory = "/home/${username}/projects/config"; safe.directory = "/home/${username}/projects/config";
}; submodules.recurse = true;
help.autocorrect = "prompt";
maintenance = { maintenance = {
repo = [ repo = [
"/home/${username}/projects/NixOS/nixpkgs" "/home/${username}/projects/NixOS/nixpkgs"

83
modules/base/home/zed.nix Normal file
View file

@ -0,0 +1,83 @@
{
flake.modules = {
homeManager.cholli =
{ lib, pkgs, ... }:
{
programs.zed-editor = {
enable = true;
userSettings = {
auto_install_extensions = {
nix = true;
catppuccin = true;
catppuccin-icons = true;
};
auto_update = false;
base_keymap = "JetBrains";
helix_mode = true;
vim_mode = false;
ui_font_family = "FiraCode Nerd Font";
ui_font_size = 16;
buffer_font_family = "FiraCode Nerd Font";
buffer_font_size = 16;
autosave = "on_focus_change";
theme = {
mode = "system";
light = "Catppuccin Latte";
dark = "Catppuccin Macchiato";
};
load_direnv = "shell_hook";
terminal = {
font_family = "FiraCode Nerd Font";
font_size = 16;
};
agent = {
enabled = true;
default_model = {
provider = "copilot_chat";
model = "gpt-4o";
};
};
agent_servers = {
github-copilot = {
type = "registry";
};
};
edit_predictions.mode = "eager";
features = {
edit_prediction_provider = "copilot";
};
inlay_hints.enabled = true;
lsp = {
nixd = {
binary = {
path = lib.getExe pkgs.nixd;
};
};
};
};
userKeymaps = [
{
context = "Workspace";
bindings = {
"shift shift" = "file_finder::Toggle";
};
}
];
};
};
};
}