moved git and added ssh key

This commit is contained in:
Gerg-L 2023-08-23 20:02:33 -04:00
parent 7f83d2acc6
commit 83ffd69a46
2 changed files with 27 additions and 33 deletions

View 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;
}

View file

@ -1,33 +0,0 @@
_: {
pkgs,
config,
lib,
...
}: {
options.local.git.disable = lib.mkOption {
type = lib.types.bool;
default = false;
};
config = lib.mkIf (! config.local.git.disable) {
programs.git = {
enable = true;
package = pkgs.gitMinimal;
config = {
user = {
name = "Gerg-L";
email = "GregLeyda@proton.me";
};
init = {
defaultBranch = "master";
};
push = {
autoSetupRemote = true;
};
advice.addIgnoredFile = false;
core.hooksPath = ".githooks";
};
};
};
_file = ./git.nix;
}