~kaction/config

753b515115b2ad8518122015ac6546a0d0cf1025 — Dmitry Bogatov 3 months ago c0c3cb1
gitconfig: properly substitute reference to perl script

git provides convenient diff-highlight script to be used as pager, but
there is no other way to use it but to pre-process ~/.gitconfig and
substitute reference to git derivation.
1 files changed, 6 insertions(+), 3 deletions(-)

M manifest/default.nix
M manifest/default.nix => manifest/default.nix +6 -3
@@ 1,5 1,5 @@
{ writeText, runCommandLocal, dhall-json, stdenv, callPackage, mk-passwd, doas
}:
{ writeText, runCommandLocal, dhall-json, stdenv, callPackage, mk-passwd,
  substituteAll, git, perl, doas }:
let
  symlink = path: {
    action = "symlink";


@@ 54,7 54,10 @@ let
        "/home/kaction/.config" = user-mkdir;
        "/home/kaction/.config/dbxcli" = user-mkdir;
        "/home/kaction/.config/dbxcli/auth.json" = symlink ./secret/dbx.json;
        "/home/kaction/.config/git/config" = symlink ./user/git.conf;
        "/home/kaction/.config/git/config" = symlink (substituteAll {
          src = ./user/git.conf;
          inherit perl git;
        });
        "/home/kaction/.config/git/ignore" = symlink ./user/gitignore;
        "/home/kaction/githooks/post-commit.d/500-git-bug" =
          symlink ./user/post-commit/git-bug.sh;