Reorganize git config

This commit is contained in:
Kiana Sheibani 2024-06-13 16:28:44 -04:00
parent 36441ce7fd
commit 411e879de1
2 changed files with 32 additions and 29 deletions

View file

@ -1,4 +1,4 @@
{ config, pkgs, username, fullname, email, ... }: { config, pkgs, username, ... }:
{ {
home.username = username; home.username = username;
home.homeDirectory = "/home/" + username; home.homeDirectory = "/home/" + username;
@ -6,31 +6,4 @@
home.stateVersion = "21.11"; home.stateVersion = "21.11";
imports = [ ./shell ./wayland ./xdg.nix ./tools.nix ./email.nix ]; 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";
};
};
};
} }

View file

@ -1,4 +1,4 @@
{ pkgs, ... }: { pkgs, fullname, email, ... }:
{ {
# Password Store # Password Store
@ -18,4 +18,34 @@
programs.mpv.config = { programs.mpv.config = {
osc = false; 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";
};
};
};
} }