nix-dotfiles/modules/git.nix

24 lines
577 B
Nix

{ config, pkgs, lib, ... }:
let
kakouneCommand = "${pkgs.kakoune}/bin/kak";
meldCommand = "${pkgs.meld}/bin/meld";
in {
enable = true;
userName = "Filippo Berto";
userEmail = "berto.f@protonmail.com";
signing = {
key = "berto.f@protonmail.com";
signByDefault = true;
};
extraConfig = {
core.editor = kakouneCommand;
credential.helper = "cache --timeout=3600";
diff.guitool = meldCommand;
merge.guitool = meldCommand;
pull.rebase = true;
rebase.autostash = true;
init.defaultBranch = "master";
};
lfs.enable = true;
delta.enable = true;
}