pinwheel: Extract git to module
This commit is contained in:
12
hosts/pinwheel/modules/git/default.nix
Normal file
12
hosts/pinwheel/modules/git/default.nix
Normal file
@@ -0,0 +1,12 @@
|
||||
{ home-manager, ... }:
|
||||
{
|
||||
home-manager.users.alex = {
|
||||
programs.git = {
|
||||
enable = true;
|
||||
|
||||
includes = [
|
||||
{ path = ./gitconfig; }
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
13
hosts/pinwheel/modules/git/gitconfig
Normal file
13
hosts/pinwheel/modules/git/gitconfig
Normal file
@@ -0,0 +1,13 @@
|
||||
[user]
|
||||
name = Alexander Heldt
|
||||
email = me@alexanderheldt.se
|
||||
|
||||
[core]
|
||||
editor = "vim"
|
||||
|
||||
[url "git@github.com:"]
|
||||
insteadOf = https://github.com/
|
||||
|
||||
[url "git@gitlab.com:"]
|
||||
insteadOf = https://gitlab.com/
|
||||
|
||||
Reference in New Issue
Block a user