🧹 Moved git config to git.nix and added aliases
This commit is contained in:
parent
e2d16b9aa9
commit
1834e6f23e
@ -13,6 +13,7 @@ in
|
|||||||
inputs.nixvim.homeManagerModules.nixvim
|
inputs.nixvim.homeManagerModules.nixvim
|
||||||
./default-applications.nix
|
./default-applications.nix
|
||||||
./fish.nix
|
./fish.nix
|
||||||
|
./git.nix
|
||||||
./nixvim
|
./nixvim
|
||||||
./rofi
|
./rofi
|
||||||
./wlogout
|
./wlogout
|
||||||
@ -40,15 +41,6 @@ in
|
|||||||
programs = {
|
programs = {
|
||||||
btop.enable = true;
|
btop.enable = true;
|
||||||
|
|
||||||
git = {
|
|
||||||
enable = true;
|
|
||||||
userName = "Martin Berg Alstad";
|
|
||||||
userEmail = "git@martials.no";
|
|
||||||
extraConfig = {
|
|
||||||
push.autoSetupRemote = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
# Let Home Manager install and manage itself.
|
# Let Home Manager install and manage itself.
|
||||||
home-manager.enable = true;
|
home-manager.enable = true;
|
||||||
|
|
||||||
|
16
home-manager/git.nix
Normal file
16
home-manager/git.nix
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
{
|
||||||
|
programs.git = {
|
||||||
|
enable = true;
|
||||||
|
userName = "Martin Berg Alstad";
|
||||||
|
userEmail = "git@martials.no";
|
||||||
|
|
||||||
|
aliases = {
|
||||||
|
cm = "commit";
|
||||||
|
s = "status";
|
||||||
|
};
|
||||||
|
|
||||||
|
extraConfig = {
|
||||||
|
push.autoSetupRemote = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user