Refactor
All checks were successful
/ check (push) Successful in 1m37s

This commit is contained in:
Oliver Davies 2025-07-24 23:43:49 +01:00
parent c77d7e4e55
commit 1b360709f8
2 changed files with 14 additions and 11 deletions

View file

@ -1,12 +1,8 @@
{ config, ... }:
{
flake.modules.homeManager.base = hmArgs: {
programs.git = {
userName = config.flake.meta.owner.name;
userEmail = config.flake.meta.owner.email;
extraConfig = {
flake.modules.homeManager.base =
{ config, ... }:
{
programs.git.extraConfig = {
branch = {
autosetupmerge = true;
autosetuprebase = "always";
@ -16,11 +12,11 @@
checkout.defaultRemote = "origin";
color.ui = true;
column.ui = "auto";
commit.template = "${hmArgs.config.xdg.configHome}/git/message";
commit.template = "${config.xdg.configHome}/git/message";
core = {
editor = "nvim";
excludesFile = "~/.config/git/ignore";
excludesFile = "${config.xdg.configHome}/git/ignore";
};
diff.tool = "vimdiff";
@ -55,5 +51,4 @@
user.signingkey = "~/.ssh/id_rsa.pub";
};
};
};
}

8
modules2/git/user.nix Normal file
View file

@ -0,0 +1,8 @@
{ config, ... }:
{
flake.modules.homeManager.base.programs.git = {
userName = config.flake.meta.owner.name;
userEmail = config.flake.meta.owner.email;
};
}