add nixos & move home-manager config
This commit is contained in:
3
home-manager/git/config/.gitignore
vendored
Normal file
3
home-manager/git/config/.gitignore
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
_scratch
|
||||
.direnv
|
||||
.envrc
|
||||
5
home-manager/git/config/personal
Normal file
5
home-manager/git/config/personal
Normal file
@@ -0,0 +1,5 @@
|
||||
[core]
|
||||
sshCommand = "ssh -i ~/Keys/personal"
|
||||
|
||||
[user]
|
||||
email = evan@reichard.io
|
||||
5
home-manager/git/config/work
Normal file
5
home-manager/git/config/work
Normal file
@@ -0,0 +1,5 @@
|
||||
[core]
|
||||
sshCommand = "ssh -i ~/Keys/work"
|
||||
|
||||
[user]
|
||||
email = evan@prophet.security
|
||||
44
home-manager/git/default.nix
Normal file
44
home-manager/git/default.nix
Normal 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;
|
||||
};
|
||||
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user