aboutsummaryrefslogtreecommitdiffstats
path: root/modules/by-name/gi/git
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--modules/by-name/gi/git/module.nix41
1 files changed, 22 insertions, 19 deletions
diff --git a/modules/by-name/gi/git/module.nix b/modules/by-name/gi/git/module.nix
index a70c38d7..36449c06 100644
--- a/modules/by-name/gi/git/module.nix
+++ b/modules/by-name/gi/git/module.nix
@@ -21,21 +21,36 @@ in {
enable = lib.mkEnableOption "an opinionated git config";
defaultBranchName = lib.mkOption {
type = lib.types.str;
- description = "The Name of the default branch.";
+ description = "The name of the default branch.";
default = "prime";
};
};
config = lib.mkIf cfg.enable {
home-manager.users.soispha = {
+ programs.delta = {
+ enable = true;
+ enableGitIntegration = true;
+ options = {
+ decorations = {
+ commit-decoration-style = "bold yellow box ul";
+ file-decoration-style = "none";
+ file-style = "bold yellow ul";
+ };
+ keep-plus-minus-markers = true;
+ features = "decorations";
+ whitespace-error-style = "22 reverse";
+ };
+ };
+
programs.git = {
enable = true;
#package = pkgs.gitAndTools.gitFull; # TODO: for git send-email support
- aliases = import ./aliases.nix {
- inherit lib;
- inherit (cfg) defaultBranchName;
- };
- extraConfig = {
+ settings = {
+ aliases = import ./aliases.nix {
+ inherit lib;
+ inherit (cfg) defaultBranchName;
+ };
core = {
excludesFile = "${gitIgnoreFile}";
};
@@ -100,19 +115,7 @@ in {
};
};
};
- delta = {
- enable = true;
- options = {
- decorations = {
- commit-decoration-style = "bold yellow box ul";
- file-decoration-style = "none";
- file-style = "bold yellow ul";
- };
- keep-plus-minus-markers = true;
- features = "decorations";
- whitespace-error-style = "22 reverse";
- };
- };
+
signing = {
key = "8321ED3A8DB999A51F3BF80FF2682914EA42DE26";
signByDefault = true;