From e323caf345fbfcbb33a5250367decc8dd4a48aac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20Gro=C3=9Fmann?= Date: Sat, 21 Jan 2023 18:14:41 +0100 Subject: [PATCH] feat: Added git config --- users/common/default.nix | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/users/common/default.nix b/users/common/default.nix index 2b13549..74699bb 100644 --- a/users/common/default.nix +++ b/users/common/default.nix @@ -44,9 +44,19 @@ enableSshSupport = true; }; - programs.git.signing = { - key = null; - signByDefault = true; + programs.git = { + aliases = { + cs = "commit -v -S"; + s = "status"; + a = "add"; + p = "push"; + }; + extraConfig.init.defaultBranch = "main"; + extraConfig.pull.ff = "only"; + signing = { + key = null; + signByDefault = true; + }; }; programs.zsh = {