some fixes
This commit is contained in:
parent
257a49faac
commit
555c53d8a3
16 changed files with 114 additions and 117 deletions
58
modules/git/default.nix
Normal file
58
modules/git/default.nix
Normal file
|
|
@ -0,0 +1,58 @@
|
|||
{ 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" ];
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue