nix-git/modules/git.nix
2024-10-24 17:18:25 +02:00

27 lines
569 B
Nix

{ config, pkgs, ... }:
{
users.users.yoda = {
packages = with pkgs; [
git
];
};
home-manager.users.yoda = { osConfig, config, pkgs, ... }: {
programs.git = {
enable = true;
userName = "Daniel Langbein";
userEmail = "daniel@systemli.org";
signing.signByDefault = true;
signing.key = null;
aliases = {
#st = "status";
};
extraConfig = {
init.defaultBranch = "main";
# TODO: Remove once this becomes default
extensions.objectFormat = "sha256";
};
};
};
}