Compare commits

..

1 Commits

Author SHA1 Message Date
J. Fernando Sánchez
92d65a8ebc Add git config and several pkgs
I've added the config to symlink my dotfiles .git like I used to do with
stow.
2026-02-04 19:11:39 +01:00
3 changed files with 15 additions and 12 deletions

View File

@@ -184,17 +184,10 @@
fonts.fontconfig.enable = true; fonts.fontconfig.enable = true;
xdg.configFile = let xdg.configFile = {
dotfiles = "${config.home.homeDirectory}/git/dotfiles"; "git" = {
source = config.lib.file.mkOutOfStoreSymlink "${config.home.homeDirectory}/git/dotfiles/git/.config/git";
createDotlink = name: { recursive = true;
source = config.lib.file.mkOutOfStoreSymlink "${dotfiles}/${name}/.config/${name}"; };
recursive = true;
};
in {
"git" = createDotLink "git";
"niri" = createDotLink "niri";
"jj" = createDotLink "jj";
}; };
} }

View File

@@ -1,4 +1,13 @@
{ config, pkgs, ... }: { config, pkgs, ... }:
{ {
home.packages = with pkgs; [ ]; home.packages = with pkgs; [ ];
programs.git = {
enable = true;
userName = "J. Fernando Sánchez";
userEmail = "balkian@gmail.com";
extraConfig = {
init.defaultBranch = "main";
};
};
} }

View File

@@ -15,3 +15,4 @@ diff-formatter=":git"
[merge-tools.delta] [merge-tools.delta]
diff-args=["--side-by-side", "$left", "$right", "--width=$width"] diff-args=["--side-by-side", "$left", "$right", "--width=$width"]