From df704cdccb339de33e99cd1018dfaa6c1c1400c8 Mon Sep 17 00:00:00 2001 From: Josevi Canet Date: Tue, 23 Jun 2026 07:57:14 +0200 Subject: [PATCH] first commit --- README.md | 34 ++++++++++++++++++++++++++++++ dot_config/Code/User/settings.json | 15 +++++++++++++ dot_config/kitty/kitty.conf | 30 ++++++++++++++++++++++++++ dot_config/starship.toml | 26 +++++++++++++++++++++++ dot_gitconfig.tmpl | 15 +++++++++++++ dot_zshrc | 29 +++++++++++++++++++++++++ private_dot_ssh/config | 10 +++++++++ 7 files changed, 159 insertions(+) create mode 100644 README.md create mode 100644 dot_config/Code/User/settings.json create mode 100644 dot_config/kitty/kitty.conf create mode 100644 dot_config/starship.toml create mode 100644 dot_gitconfig.tmpl create mode 100644 dot_zshrc create mode 100644 private_dot_ssh/config diff --git a/README.md b/README.md new file mode 100644 index 0000000..a9201fd --- /dev/null +++ b/README.md @@ -0,0 +1,34 @@ +# configs — dotfiles (chezmoi) + +Repo de configuración personal gestionado con [chezmoi]. Lo aplica +`arch-setup` al final de la instalación: + +```bash +chezmoi init --apply https://gitea.josevi.ovh/josevi/configs.git +``` + +(con token en la URL si el repo es privado). + +## Qué gestiona + +| Origen (chezmoi) | Destino | +|--------------------------------------|----------------------------------| +| `dot_zshrc` | `~/.zshrc` | +| `dot_gitconfig.tmpl` | `~/.gitconfig` | +| `dot_config/starship.toml` | `~/.config/starship.toml` | +| `dot_config/kitty/kitty.conf` | `~/.config/kitty/kitty.conf` | +| `dot_config/Code/User/settings.json` | `~/.config/Code/User/settings.json` | +| `private_dot_ssh/config` | `~/.ssh/config` (0600) | + +`.chezmoi.toml.tmpl` resuelve nombre/email de git desde las variables de +entorno `GIT_NAME`/`GIT_EMAIL` (las inyecta `setup.sh`), o preguntando una vez. + +## Convenciones chezmoi + +- `dot_` → `.` en el destino. `private_` → permisos 0600. `.tmpl` → plantilla. +- Edita siempre la fuente: `chezmoi edit ~/.zshrc`, luego `chezmoi apply`. +- Los ajustes de **GUI/tema** (dconf de GNOME, look de Plasma, Catppuccin) NO + van aquí: los aplica `arch-setup` en el primer login. chezmoi solo lleva + configs de texto versionables. + +[chezmoi]: https://www.chezmoi.io diff --git a/dot_config/Code/User/settings.json b/dot_config/Code/User/settings.json new file mode 100644 index 0000000..abb5f24 --- /dev/null +++ b/dot_config/Code/User/settings.json @@ -0,0 +1,15 @@ +{ + "editor.fontFamily": "JetBrainsMono Nerd Font Mono, monospace", + "editor.fontSize": 13, + "editor.fontLigatures": true, + "editor.tabSize": 2, + "editor.formatOnSave": true, + "editor.minimap.enabled": false, + "files.trimTrailingWhitespace": true, + "files.insertFinalNewline": true, + "terminal.integrated.fontFamily": "JetBrainsMono Nerd Font Mono", + "workbench.colorTheme": "Catppuccin Mocha", + "workbench.iconTheme": "catppuccin-mocha", + "telemetry.telemetryLevel": "off", + "git.confirmSync": false +} diff --git a/dot_config/kitty/kitty.conf b/dot_config/kitty/kitty.conf new file mode 100644 index 0000000..730e510 --- /dev/null +++ b/dot_config/kitty/kitty.conf @@ -0,0 +1,30 @@ +# kitty — gestionado por chezmoi +font_family JetBrainsMono Nerd Font Mono +font_size 12.0 +cursor_shape beam +scrollback_lines 10000 +enable_audio_bell no +confirm_os_window_close 0 + +# Catppuccin Mocha +foreground #cdd6f4 +background #1e1e2e +selection_foreground #1e1e2e +selection_background #f5e0dc +cursor #f5e0dc +color0 #45475a +color1 #f38ba8 +color2 #a6e3a1 +color3 #f9e2af +color4 #89b4fa +color5 #cba6f7 +color6 #94e2d5 +color7 #bac2de +color8 #585b70 +color9 #f38ba8 +color10 #a6e3a1 +color11 #f9e2af +color12 #89b4fa +color13 #cba6f7 +color14 #94e2d5 +color15 #a6adc8 diff --git a/dot_config/starship.toml b/dot_config/starship.toml new file mode 100644 index 0000000..7c2b9d1 --- /dev/null +++ b/dot_config/starship.toml @@ -0,0 +1,26 @@ +# starship — tema Catppuccin Mocha +palette = "catppuccin_mocha" + +format = "$directory$git_branch$git_status$python$rust$nodejs$cmd_duration$character" + +[character] +success_symbol = "[➜](green)" +error_symbol = "[➜](red)" + +[directory] +truncation_length = 3 +style = "blue" + +[git_branch] +style = "mauve" + +[cmd_duration] +min_time = 2000 +style = "yellow" + +[palettes.catppuccin_mocha] +blue = "#89b4fa" +green = "#a6e3a1" +red = "#f38ba8" +yellow = "#f9e2af" +mauve = "#cba6f7" diff --git a/dot_gitconfig.tmpl b/dot_gitconfig.tmpl new file mode 100644 index 0000000..8f4079e --- /dev/null +++ b/dot_gitconfig.tmpl @@ -0,0 +1,15 @@ +[user] + name = {{ .name }} + email = {{ .email }} +[init] + defaultBranch = main +[pull] + rebase = true +[core] + editor = nvim + pager = bat +[alias] + st = status -sb + lg = log --oneline --graph --decorate +[url "https://gitea.josevi.ovh/"] + insteadOf = gitea: diff --git a/dot_zshrc b/dot_zshrc new file mode 100644 index 0000000..1655083 --- /dev/null +++ b/dot_zshrc @@ -0,0 +1,29 @@ +# ~/.zshrc — gestionado por chezmoi (repo configs) + +# Historia +HISTFILE=~/.zsh_history +HISTSIZE=10000 +SAVEHIST=10000 +setopt SHARE_HISTORY HIST_IGNORE_DUPS HIST_IGNORE_SPACE + +# Completado +autoload -Uz compinit && compinit +zstyle ':completion:*' menu select + +# Aliases (CLI moderno instalado por arch-setup) +alias ls='eza --group-directories-first' +alias ll='eza -lah --git' +alias cat='bat' +alias grep='rg' +alias top='btop' +alias g='git' +# Podman con compat docker +alias docker='podman' + +# Herramientas +command -v zoxide >/dev/null && eval "$(zoxide init zsh)" +command -v fzf >/dev/null && source <(fzf --zsh) 2>/dev/null +command -v starship>/dev/null && eval "$(starship init zsh)" + +export EDITOR=nvim +export PATH="$HOME/.local/bin:$PATH" diff --git a/private_dot_ssh/config b/private_dot_ssh/config new file mode 100644 index 0000000..6fada8c --- /dev/null +++ b/private_dot_ssh/config @@ -0,0 +1,10 @@ +# ~/.ssh/config — gestionado por chezmoi (SIN claves, solo hosts) +# private_ -> chezmoi lo aplica con permisos 0600. + +Host * + AddKeysToAgent yes + ServerAliveInterval 60 + +Host gitea + HostName gitea.josevi.ovh + User git