58 lines
1 KiB
Nix
58 lines
1 KiB
Nix
{ inputs, ... }:
|
|
{
|
|
flake.modules.nixos.git =
|
|
{ pkgs, ... }:
|
|
{
|
|
environment.systemPackages = with pkgs; [
|
|
git
|
|
];
|
|
|
|
home-manager.sharedModules = [
|
|
inputs.self.modules.homeManager.git
|
|
];
|
|
};
|
|
|
|
flake.modules.darwin.git =
|
|
{ pkgs, ... }:
|
|
{
|
|
environment.systemPackages = with pkgs; [
|
|
git
|
|
];
|
|
|
|
home-manager.sharedModules = [
|
|
inputs.self.modules.homeManager.git
|
|
];
|
|
};
|
|
|
|
flake.modules.homeManager.git =
|
|
{ pkgs, config, ... }:
|
|
{
|
|
programs.git = {
|
|
enable = true;
|
|
settings = {
|
|
init = {
|
|
defaultBranch = "main";
|
|
};
|
|
|
|
core = {
|
|
ignorecase = "false";
|
|
};
|
|
|
|
pull = {
|
|
rebase = false;
|
|
};
|
|
|
|
push = {
|
|
autoSetupRemote = true;
|
|
};
|
|
|
|
user = {
|
|
# TODO get from config
|
|
name = "Dennis Schoepf";
|
|
email = "me@dnsc.io";
|
|
};
|
|
};
|
|
ignores = [ ".DS_Store" ];
|
|
};
|
|
};
|
|
}
|