Refactor
This commit is contained in:
parent
eb516819fa
commit
c77d7e4e55
1 changed files with 51 additions and 56 deletions
|
@ -1,15 +1,10 @@
|
||||||
{ config, ... }:
|
{ config, ... }:
|
||||||
|
|
||||||
let
|
|
||||||
cfg = config;
|
|
||||||
in
|
|
||||||
{
|
{
|
||||||
flake.modules.homeManager.base =
|
flake.modules.homeManager.base = hmArgs: {
|
||||||
{ config, ... }:
|
|
||||||
{
|
|
||||||
programs.git = {
|
programs.git = {
|
||||||
userName = cfg.flake.meta.owner.name;
|
userName = config.flake.meta.owner.name;
|
||||||
userEmail = cfg.flake.meta.owner.email;
|
userEmail = config.flake.meta.owner.email;
|
||||||
|
|
||||||
extraConfig = {
|
extraConfig = {
|
||||||
branch = {
|
branch = {
|
||||||
|
@ -21,7 +16,7 @@ in
|
||||||
checkout.defaultRemote = "origin";
|
checkout.defaultRemote = "origin";
|
||||||
color.ui = true;
|
color.ui = true;
|
||||||
column.ui = "auto";
|
column.ui = "auto";
|
||||||
commit.template = "${config.xdg.configHome}/git/message";
|
commit.template = "${hmArgs.config.xdg.configHome}/git/message";
|
||||||
|
|
||||||
core = {
|
core = {
|
||||||
editor = "nvim";
|
editor = "nvim";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue