From edd708580e58d1bd93f6c0bfc4f99bf76267e8f1 Mon Sep 17 00:00:00 2001 From: Soispha Date: Sat, 13 May 2023 12:05:16 +0200 Subject: Refactor(hm/conf/git): Remove useless variable assignment --- home-manager/config/git/default.nix | 37 ++++++++++++++++++------------------- 1 file changed, 18 insertions(+), 19 deletions(-) (limited to 'home-manager/config') 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 = { -- cgit 1.4.1