From ecb77474639bfafad4abd45cbf9dfdbb3fcd1aae Mon Sep 17 00:00:00 2001 From: Sakooooo <78461130+Sakooooo@users.noreply.github.com> Date: Thu, 1 Aug 2024 22:21:19 +0400 Subject: [PATCH] nixify git config --- default.nix | 29 +++++++++++++++++++++++------ 1 file changed, 23 insertions(+), 6 deletions(-) diff --git a/default.nix b/default.nix index a806e1c1..6f04af54 100644 --- a/default.nix +++ b/default.nix @@ -104,9 +104,26 @@ home.homeDirectory = "/home/sako"; programs.bash.enable = true; programs.home-manager.enable = true; - xdg.configFile.git = { - source = ./config/git; + # xdg.configFile.git = { + # source = ./config/git; + # }; + + programs.git = { + enable = true; + userName = "Sakooooo"; + userEmail = "78461130+Sakooooo@users.noreply.github.com"; + includes = [ + { + path = "~/.config/git/config.local"; + } + ]; + extraConfig = { + color.ui = "auto"; + init.defaultBranch = "master"; + pull.rebase = true; + }; }; + }; # bare minimum environment.systemPackages = with pkgs; [ @@ -135,10 +152,10 @@ # enableSSHSupport = true; }; - programs.git = { - enable = true; - package = pkgs.gitFull; - }; + # programs.git = { + # enable = true; + # package = pkgs.gitFull; + # }; # read stable version patch notes and fix any issues # then you can change this