From 0c40201f2cae729a94c43490a07c437aedfc4534 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Wed, 9 Feb 2022 08:35:25 -0800 Subject: home-manager: add more common programs Add git configuration and move go to its own module. --- users/fcuny/git.nix | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 users/fcuny/git.nix (limited to 'users/fcuny/git.nix') diff --git a/users/fcuny/git.nix b/users/fcuny/git.nix new file mode 100644 index 0000000..adaf626 --- /dev/null +++ b/users/fcuny/git.nix @@ -0,0 +1,20 @@ +{ + programs.git = { + enable = true; + aliases = { + s = "status --short --branch"; + amend = "commit --amend --no-edit"; + }; + extraConfig = { + core.whitespace = "trailing-space,space-before-tab"; + color.ui = "true"; + push.default = "simple"; + init.defaultBranch = "main"; + branch.autosetuprebase = "remote"; + branch.sort = "authordate"; + }; + userName = "Franck Cuny"; + userEmail = "franck@fcuny.net"; + ignores = [ "*.o" "*.pyc" "*.pyo" "*.elc" "*~" ".direnv/*" "\\#*\\#" ".\\#" ]; + }; +} -- cgit 1.4.1