Add git config and several pkgs

I've added the config to symlink my dotfiles .git like I used to do with
stow.
This commit is contained in:
J. Fernando Sánchez
2026-02-05 10:44:47 +01:00
parent 1dd84eb214
commit 6cc37ee562
8 changed files with 85 additions and 17 deletions

12
git/.config/git/config Normal file
View File

@@ -0,0 +1,12 @@
[user]
name = J. Fernando Sánchez
email = j@sinpapel.es
[core]
pager = delta
[includeIf "gitdir:~/git/work/tcs/"]
path = tcs.config
[delta]
side-by-side = true

View File

@@ -0,0 +1,3 @@
[user]
name = J. Fernando Sánchez
email = f.sanchez@thechannelstore.tv

View File

@@ -1,10 +1,15 @@
[user] [user]
name = J. Fernando Sánchez name = J. Fernando Sánchez
email = balkian@gmail.com email = j@sanchezrada.es
[diff] [diff]
tool = vimdiff tool = delta
[alias] [alias]
d = difftool d = difftool
[includeIf "gitdir:~/git/work/tcs"]
path = ~/.config/git/tcs.config
[include] [include]
path = ~/.gitconfig_secret path = ~/.gitconfig_secret

View File

@@ -39,6 +39,7 @@
# Utils # Utils
jq jq
bat # Replacement for less bat # Replacement for less
delta # Replacement for less (for git diff and the like)
eza # Better ld eza # Better ld
zoxide # better cd zoxide # better cd
yazi # File manager yazi # File manager
@@ -47,12 +48,13 @@
dust # File disk utilization dust # File disk utilization
gnumake gnumake
zenith # System monitor
# Productivity
taskwarrior3 taskwarrior3
taskwarrior-tui taskwarrior-tui
timewarrior timewarrior
zenith # System monitor
# Shells # Shells
fish fish
grc # Colorizer grc # Colorizer
@@ -120,7 +122,8 @@
home.sessionVariables = { home.sessionVariables = {
XDG_BIN_HOME = "${config.home.homeDirectory}/.local/bin"; XDG_BIN_HOME = "${config.home.homeDirectory}/.local/bin";
#This variable is overriden. It does not work #This variable is overriden. It does not work
EDITOR = "nvim"; EDITOR = "hx";
PAGER = "bat";
}; };
home.sessionPath = [ "$XDG_BIN_HOME" ]; home.sessionPath = [ "$XDG_BIN_HOME" ];
@@ -181,6 +184,10 @@
fonts.fontconfig.enable = true; fonts.fontconfig.enable = true;
xdg.configFile = {
"git" = {
source = config.lib.file.mkOutOfStoreSymlink "${config.home.homeDirectory}/git/dotfiles/git/.config/git";
recursive = true;
};
};
} }

View File

@@ -4,15 +4,12 @@
jujutsu jujutsu
ansible ansible
awscli2 awscli2
tinybird cargo-cross
rustup
rustc
gcc
vial
chromium
]; ];
programs.git = {
enable = true;
userName = "Fernando Sánchez";
userEmail = "f.sanchez@thechannelstore.tv";
extraConfig = {
init.defaultBranch = "main";
};
};
} }

18
jj/.config/jj/config.toml Normal file
View File

@@ -0,0 +1,18 @@
"$schema" = "https://jj-vcs.github.io/jj/latest/config-schema.json"
[user]
name = "J. Fernando Sánchez"
email = "f.sanchez@thechannelstore.tv"
[[--scope]]
--when.repositories = ["~/git/personal/"]
[--scope.user]
email = "j@sanchezrada.es"
[ui]
pager = "delta" #":builtin"
diff-formatter=":git"
[merge-tools.delta]
diff-args=["--side-by-side", "$left", "$right", "--width=$width"]

View File

@@ -0,0 +1,15 @@
customCommands:
# - key: "m"
# description: "Merge (noff, nocommit)"
# command: "git merge --no-ff --no-commit {{.SelectedBranch}}"
# context: "localBranches"
# output: terminal
- key: "m"
description: "Merge (noff, nocommit)"
command: "git merge --no-ff --no-commit {{.SelectedLocalBranch.Name}}"
context: "localBranches"
output: terminal
#keybindings:
# branches:
# merge: "m" # make the UI “Merge” use our custom command

View File

@@ -103,6 +103,7 @@ output "eDP-1" {
// If the position is unset or results in an overlap, the output is instead placed // If the position is unset or results in an overlap, the output is instead placed
// automatically. // automatically.
position x=0 y=0 position x=0 y=0
//position x=0 y=1080
} }
output "DP-1" { output "DP-1" {
@@ -115,10 +116,15 @@ output "DP-1" {
// for the resolution. // for the resolution.
// If the mode is omitted altogether or is invalid, niri will pick one automatically. // If the mode is omitted altogether or is invalid, niri will pick one automatically.
// Run `niri msg outputs` while inside a niri instance to list all outputs and their modes. // Run `niri msg outputs` while inside a niri instance to list all outputs and their modes.
//mode "3840x2160@60"
mode "3840x2160@60" mode "3840x2160@60"
scale 1.25
//mode "1920x1080@60"
//mode "2560x1440"
//scale 1
// You can use integer or fractional scale, for example use 1.5 for 150% scale. // You can use integer or fractional scale, for example use 1.5 for 150% scale.
scale 1.25 //scale 1.0
// Transform allows to rotate the output counter-clockwise, valid values are: // Transform allows to rotate the output counter-clockwise, valid values are:
// normal, 90, 180, 270, flipped, flipped-90, flipped-180 and flipped-270. // normal, 90, 180, 270, flipped, flipped-90, flipped-180 and flipped-270.
@@ -134,6 +140,7 @@ output "DP-1" {
// If the position is unset or results in an overlap, the output is instead placed // If the position is unset or results in an overlap, the output is instead placed
// automatically. // automatically.
position x=1920 y=-500 position x=1920 y=-500
//position x=0 y=0
} }
// Settings that influence how windows are positioned and sized. // Settings that influence how windows are positioned and sized.
@@ -427,6 +434,9 @@ binds {
// Note: the entire command goes as a single argument in the end. // Note: the entire command goes as a single argument in the end.
// Mod+T { spawn "bash" "-c" "notify-send hello && exec wezterm"; } // Mod+T { spawn "bash" "-c" "notify-send hello && exec wezterm"; }
Ctrl+Alt+W { spawn "firefox" "--ProfileManager"; }
Ctrl+Alt+Q { spawn "chromium-browser" "--ozone-platform=wayland"; }
// Brightness control // Brightness control
XF86MonBrightnessUp allow-when-locked=true { spawn "brightnessctl" "s" "+5%"; } XF86MonBrightnessUp allow-when-locked=true { spawn "brightnessctl" "s" "+5%"; }
XF86MonBrightnessDown allow-when-locked=true { spawn "brightnessctl" "s" "5%-"; } XF86MonBrightnessDown allow-when-locked=true { spawn "brightnessctl" "s" "5%-"; }
@@ -556,6 +566,7 @@ binds {
Mod+7 { focus-workspace "7"; } Mod+7 { focus-workspace "7"; }
Mod+8 { focus-workspace "8"; } Mod+8 { focus-workspace "8"; }
Mod+9 { focus-workspace "9"; } Mod+9 { focus-workspace "9"; }
Mod+grave { focus-workspace "teams"; }
Mod+0 { focus-workspace "teams"; } Mod+0 { focus-workspace "teams"; }
Mod+Ctrl+1 { move-column-to-workspace "terminal"; } Mod+Ctrl+1 { move-column-to-workspace "terminal"; }
Mod+Ctrl+2 { move-column-to-workspace "firefox"; } Mod+Ctrl+2 { move-column-to-workspace "firefox"; }