add nixos & move home-manager config

This commit is contained in:
2025-01-24 19:53:44 -05:00
parent 901cc03d80
commit bb8e2171ce
44 changed files with 406 additions and 25 deletions

3
home-manager/git/config/.gitignore vendored Normal file
View File

@@ -0,0 +1,3 @@
_scratch
.direnv
.envrc

View File

@@ -0,0 +1,5 @@
[core]
sshCommand = "ssh -i ~/Keys/personal"
[user]
email = evan@reichard.io

View File

@@ -0,0 +1,5 @@
[core]
sshCommand = "ssh -i ~/Keys/work"
[user]
email = evan@prophet.security

View File

@@ -0,0 +1,44 @@
{ config, pkgs, ... }:
{
programs.git = {
enable = true;
userName = "Evan Reichard";
aliases = {
lg = "log --graph --abbrev-commit --decorate --date=relative --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all -n 15";
};
includes = [
{
path = "~/.config/git/work";
condition = "gitdir:~/Development/git/work/";
}
{
path = "~/.config/git/personal";
condition = "gitdir:~/Development/git/personal/";
}
];
extraConfig = {
core = {
autocrlf = "input";
safecrlf = "true";
excludesFile = "~/.config/git/.gitignore";
};
merge = {
conflictstyle = "zdiff3";
};
push = {
autoSetupRemote = true;
};
};
};
xdg.configFile = {
# Copy Configuration
git = {
source = ./config;
recursive = true;
};
};
}