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