mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 08:53: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;
|
||||||
|
}
|
||||||
|
|
@ -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;
|
|
||||||
}
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue