Nix configurations for my personal machines (Linux & macOS)

git: enable mergiraf

ovyerus.com a84b2ddf 60aa5b00

verified
Changed files
+13
modules
programs
+13
modules/programs/git.nix
···
ff = "only";
# Really only useful on a well-managed team. Maybe eventually.
# verifySignatures = true;
};
push = {
···
ui = {
default-command = "log";
show-cryptographic-signatures = true;
};
revset-aliases = {
"closest_bookmark(to)" = "heads(::to & bookmarks())";
};
aliases = {
tug = ["bookmark" "move" "--from" "closest_bookmark(@-)" "--to" "@-"];
e = ["edit"];
};
git = {
···
};
};
};
};
}
···
ff = "only";
# Really only useful on a well-managed team. Maybe eventually.
# verifySignatures = true;
+
conflictStyle = "diff3";
};
push = {
···
ui = {
default-command = "log";
show-cryptographic-signatures = true;
+
conflict-marker-style = "git";
+
diff-formatter = "delta";
};
revset-aliases = {
"closest_bookmark(to)" = "heads(::to & bookmarks())";
+
"p(n)" = "p(@, n)";
+
"p(r, n)" = "roots(r | ancestors(r-, n))";
};
aliases = {
tug = ["bookmark" "move" "--from" "closest_bookmark(@-)" "--to" "@-"];
e = ["edit"];
+
n = ["new"];
+
};
+
+
merge-tools.mergiraf = {
+
program = "mergiraf";
+
merge-args = ["merge" "$base" "$left" "$right" "-o" "$output"];
};
git = {
···
};
};
};
+
+
programs.mergiraf.enable = true;
};
}