mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 00:43:56 -05:00
moved git and added ssh key
This commit is contained in:
parent
7f83d2acc6
commit
83ffd69a46
2 changed files with 27 additions and 33 deletions
27
hosts/gerg-desktop/git.nix
Normal file
27
hosts/gerg-desktop/git.nix
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
_: {
|
||||
pkgs,
|
||||
config,
|
||||
...
|
||||
}: {
|
||||
programs.git = {
|
||||
enable = true;
|
||||
package = pkgs.gitMinimal;
|
||||
config = {
|
||||
user = {
|
||||
name = "Gerg-L";
|
||||
email = "GregLeyda@proton.me";
|
||||
signingkey = "~/.ssh/id_ed25519.pub";
|
||||
};
|
||||
init = {
|
||||
defaultBranch = "master";
|
||||
};
|
||||
push = {
|
||||
autoSetupRemote = true;
|
||||
};
|
||||
advice.addIgnoredFile = false;
|
||||
core.hooksPath = ".githooks";
|
||||
gpg.format = "ssh";
|
||||
};
|
||||
};
|
||||
_file = ./git.nix;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue