Compare commits

..

3 Commits

Author SHA1 Message Date
J. Fernando Sánchez
cf50f8800b Home manager: Remove unnecessary git config 2026-02-05 10:45:19 +01:00
J. Fernando Sánchez
d0a86c9dc5 Home manager: Add niri and jj as symlinks
This follows in the steps of mimicking stow.
2026-02-05 10:45:19 +01:00
J. Fernando Sánchez
6cc37ee562 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-05 10:44:47 +01:00
3 changed files with 12 additions and 15 deletions

View File

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

View File

@@ -1,13 +1,4 @@
{ config, 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,4 +15,3 @@ diff-formatter=":git"
[merge-tools.delta]
diff-args=["--side-by-side", "$left", "$right", "--width=$width"]