diff options
Diffstat (limited to 'nix/users/fcuny/git.nix')
-rw-r--r-- | nix/users/fcuny/git.nix | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/nix/users/fcuny/git.nix b/nix/users/fcuny/git.nix index c89454b..9f7023a 100644 --- a/nix/users/fcuny/git.nix +++ b/nix/users/fcuny/git.nix @@ -1,4 +1,5 @@ -{ lib, pkgs, ... }: { +{ lib, pkgs, ... }: +{ home.packages = with pkgs; [ gitAndTools.pre-commit git-credential-manager @@ -10,7 +11,9 @@ userName = "Franck Cuny"; userEmail = "franck@fcuny.net"; - aliases = { amend = "commit --amend"; }; + aliases = { + amend = "commit --amend"; + }; # https://stackoverflow.com/questions/74012449/git-includeif-hasconfigremote-url-not-working # to test it's working as expected: @@ -19,17 +22,18 @@ includes = [ { condition = "hasconfig:remote.*.url:git@github.rbx.com:*/**"; - path = pkgs.writeText "username.cfg" - (lib.generators.toGitINI { user.email = "fcuny@roblox.com"; }); + path = pkgs.writeText "username.cfg" (lib.generators.toGitINI { user.email = "fcuny@roblox.com"; }); } { condition = "hasconfig:remote.*.url:git@github.com:Roblox/**"; - path = pkgs.writeText "username.cfg" - (lib.generators.toGitINI { user.email = "fcuny@roblox.com"; }); + path = pkgs.writeText "username.cfg" (lib.generators.toGitINI { user.email = "fcuny@roblox.com"; }); } ]; - ignores = [ ".envrc" ".direnv" ]; + ignores = [ + ".envrc" + ".direnv" + ]; extraConfig = { core.whitespace = "trailing-space,space-before-tab"; |