diff options
author | Soispha <soispha@vhack.eu> | 2023-05-13 12:05:16 +0200 |
---|---|---|
committer | Soispha <soispha@vhack.eu> | 2023-05-13 12:05:16 +0200 |
commit | edd708580e58d1bd93f6c0bfc4f99bf76267e8f1 (patch) | |
tree | 1bad2b76db2cda534cad993eb82e7b9c92628100 /home-manager/config/git/default.nix | |
parent | Feat(hm/conf/git): Reword git commit template (diff) | |
download | nixos-config-edd708580e58d1bd93f6c0bfc4f99bf76267e8f1.tar.gz nixos-config-edd708580e58d1bd93f6c0bfc4f99bf76267e8f1.zip |
Refactor(hm/conf/git): Remove useless variable assignment
Diffstat (limited to '')
-rw-r--r-- | home-manager/config/git/default.nix | 37 |
1 files changed, 18 insertions, 19 deletions
diff --git a/home-manager/config/git/default.nix b/home-manager/config/git/default.nix index c01738e0..5f5ce100 100644 --- a/home-manager/config/git/default.nix +++ b/home-manager/config/git/default.nix @@ -1,22 +1,4 @@ {...}: let - gitConfig = { - core = { - excludesFile = "${gitIgnoreFile}"; - }; - init = { - defaultBranch = "prime"; - }; - user = { - email = "soispha@vhack.eu"; - name = "Soispha"; - }; - help = { - autocorrect = 5; - }; - commit = { - template = "${gitTemplateFile}"; - }; - }; gitIgnoreFile = ./git_ignore.git; gitTemplateFile = ./git_template.git; in { @@ -49,7 +31,24 @@ in { '' %C(white)%s%C(reset)%n'' \ %C(dim white)- %an <%ae> %C(reset) %C(dim white)(committer: %cn <%ce>)%C(reset)'"; }; - extraConfig = gitConfig; + extraConfig = { + core = { + excludesFile = "${gitIgnoreFile}"; + }; + init = { + defaultBranch = "prime"; + }; + user = { + email = "soispha@vhack.eu"; + name = "Soispha"; + }; + help = { + autocorrect = 5; + }; + commit = { + template = "${gitTemplateFile}"; + }; + }; delta = { enable = true; options = { |