Home manager: Add niri and jj as symlinks

This follows in the steps of mimicking stow.
This commit is contained in:
J. Fernando Sánchez
2026-02-05 10:43:52 +01:00
parent 6cc37ee562
commit d0a86c9dc5
2 changed files with 12 additions and 6 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

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