Reorganize git config
This commit is contained in:
parent
36441ce7fd
commit
411e879de1
|
@ -1,4 +1,4 @@
|
|||
{ config, pkgs, username, fullname, email, ... }:
|
||||
{ config, pkgs, username, ... }:
|
||||
{
|
||||
home.username = username;
|
||||
home.homeDirectory = "/home/" + username;
|
||||
|
@ -6,31 +6,4 @@
|
|||
home.stateVersion = "21.11";
|
||||
|
||||
imports = [ ./shell ./wayland ./xdg.nix ./tools.nix ./email.nix ];
|
||||
|
||||
programs.git = {
|
||||
enable = true;
|
||||
userName = fullname;
|
||||
userEmail = email;
|
||||
|
||||
signing.key = "6CB106C25E86A9F7";
|
||||
signing.signByDefault = true;
|
||||
|
||||
extraConfig = {
|
||||
credential.helper = "store";
|
||||
git.allowForcePush = true;
|
||||
push.followTags = true;
|
||||
init.defaultBranch = "main";
|
||||
};
|
||||
|
||||
delta.enable = true;
|
||||
delta.options = {
|
||||
features = "decorations";
|
||||
relative-paths = true;
|
||||
|
||||
decorations = {
|
||||
file-style = "yellow";
|
||||
hunk-header-style = "line-number syntax";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{ pkgs, ... }:
|
||||
{ pkgs, fullname, email, ... }:
|
||||
{
|
||||
|
||||
# Password Store
|
||||
|
@ -18,4 +18,34 @@
|
|||
programs.mpv.config = {
|
||||
osc = false;
|
||||
};
|
||||
|
||||
# Git
|
||||
|
||||
programs.git = {
|
||||
enable = true;
|
||||
userName = fullname;
|
||||
userEmail = email;
|
||||
|
||||
signing.key = "6CB106C25E86A9F7";
|
||||
signing.signByDefault = true;
|
||||
|
||||
extraConfig = {
|
||||
github.user = "kiana-S";
|
||||
credential.helper = "store";
|
||||
git.allowForcePush = true;
|
||||
push.followTags = true;
|
||||
init.defaultBranch = "main";
|
||||
};
|
||||
|
||||
delta.enable = true;
|
||||
delta.options = {
|
||||
features = "decorations";
|
||||
relative-paths = true;
|
||||
|
||||
decorations = {
|
||||
file-style = "yellow";
|
||||
hunk-header-style = "line-number syntax";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue