nix-git/modules/git.nix

25 lines
476 B
Nix
Raw Permalink Normal View History

2023-08-31 14:02:30 +02:00
{ config, pkgs, ... }:
{
2023-09-06 14:03:31 +02:00
users.users.yoda = {
packages = with pkgs; [
git
];
};
2023-08-31 14:02:30 +02:00
2023-09-06 14:03:31 +02:00
home-manager.users.yoda = { osConfig, config, pkgs, ... }: {
2023-08-31 14:02:30 +02:00
programs.git = {
enable = true;
userName = "Daniel Langbein";
userEmail = "daniel@systemli.org";
2024-08-13 15:17:35 +02:00
signing.signByDefault = true;
2023-09-07 21:33:24 +02:00
signing.key = null;
2023-08-31 14:02:30 +02:00
aliases = {
#st = "status";
};
2024-10-24 17:18:25 +02:00
extraConfig = {
init.defaultBranch = "main";
};
2023-08-31 14:02:30 +02:00
};
};
}