home: add home flake, decentralize git username config

This commit is contained in:
Evar 2025-06-25 03:54:37 -04:00
parent 3c818d02b2
commit 0aa28a90f2
6 changed files with 19 additions and 2 deletions

View file

@ -6,6 +6,7 @@
homeManagerModules = { homeManagerModules = {
dev = import ./home/dev; dev = import ./home/dev;
work = import ./home/work; work = import ./home/work;
home = import ./home/home;
default = import ./home; default = import ./home;
}; };

View file

@ -13,8 +13,6 @@
# difftastic.enable = true; # difftastic.enable = true;
# https://difftastic.wilfred.me.uk/git.html # https://difftastic.wilfred.me.uk/git.html
# https://tsdh.org/posts/2022-08-01-difftastic-diffing-with-magit.html # https://tsdh.org/posts/2022-08-01-difftastic-diffing-with-magit.html
userEmail = "esmith@true-helix.com";
userName = "Evar Smith";
extraConfig = { extraConfig = {
init.defaultBranch = "integration"; init.defaultBranch = "integration";

5
home/home/default.nix Normal file
View file

@ -0,0 +1,5 @@
{
imports = [
./git.nix
];
}

6
home/home/git.nix Normal file
View file

@ -0,0 +1,6 @@
{
programs.git = {
userEmail = "git@evar.dev";
userName = "Evar";
};
}

View file

@ -1,5 +1,6 @@
{ {
imports = [ imports = [
./xfreerdp.nix ./xfreerdp.nix
./git.nix
]; ];
} }

6
home/work/git.nix Normal file
View file

@ -0,0 +1,6 @@
{
programs.git = {
userEmail = "git@evar.dev";
userName = "Evar Smith";
};
}