1
0
mirror of https://github.com/ellmau/nixos.git synced 2025-12-19 09:29:36 +01:00
nixos/users/ellmau/git.nix

26 lines
515 B
Nix

{ config, pkgs, lib, ...}:
{
programs= {
git = {
enable = true;
package = pkgs.gitAndTools.gitFull;
extraConfig = {
core = { editor = "emacsclient"; };
init = { defaultBranch = "main";};
branch = { autosetuprebase = "always";};
safe.directory = [ "/etc/nixos" ];
};
lfs.enable = true;
};
gh = {
enable = true;
settings = {
aliases = {};
git_protocol = "ssh";
prompt = "enabled";
};
};
};
}