diff options
author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2025-10-20 20:38:12 +0200 |
---|---|---|
committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2025-10-20 20:40:08 +0200 |
commit | 996cd66fcb5f9c2e7fac30e4113f88792f9678e6 (patch) | |
tree | caf42197cb9b0a19c1e7102ce5f27777183e7cab /modules/by-name | |
parent | treewide: Update (diff) | |
download | nixos-config-996cd66fcb5f9c2e7fac30e4113f88792f9678e6.zip |
{modules,legacy}/{git,conf/mail}: Use new rfc42 git config
Diffstat (limited to '')
-rw-r--r-- | modules/by-name/gi/git/module.nix | 41 |
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; |