home-manager: split git config out of default.nix

This commit is contained in:
2022-10-21 08:41:28 -07:00
parent 7db3816511
commit 17189b22e9
2 changed files with 19 additions and 16 deletions

View File

@@ -20,6 +20,7 @@ let
in
{
imports = [
./git.nix
./kitty.nix
./neovim.nix
./librewolf.nix
@@ -240,22 +241,6 @@ in
programs = {
home-manager.enable = true; # this lets home-manager manage dot-files in user dirs, i think
git = {
enable = true;
userName = "colin";
userEmail = "colin@uninsane.org";
aliases = { co = "checkout"; };
extraConfig = {
# difftastic docs:
# - <https://difftastic.wilfred.me.uk/git.html>
diff.tool = "difftastic";
difftool.prompt = false;
"difftool \"difftastic\"".cmd = ''${pkgs.difftastic}/bin/difft "$LOCAL" "$REMOTE"'';
# now run `git difftool` to use difftastic git
};
};
mpv = {
enable = true;
config = {

View File

@@ -0,0 +1,18 @@
{ pkgs, ... }:
{
home-manager.users.colin.programs.git = {
enable = true;
userName = "colin";
userEmail = "colin@uninsane.org";
aliases = { co = "checkout"; };
extraConfig = {
# difftastic docs:
# - <https://difftastic.wilfred.me.uk/git.html>
diff.tool = "difftastic";
difftool.prompt = false;
"difftool \"difftastic\"".cmd = ''${pkgs.difftastic}/bin/difft "$LOCAL" "$REMOTE"'';
# now run `git difftool` to use difftastic git
};
};
}