I showed you my source code, pls respond
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
650 B

3 years ago
  1. # This file is controlled by /etc/dotfiles/README.org
  2. # This module MUST be included within home manager
  3. { pkgs, ... }:
  4. let
  5. # Fix any corruptions in the local copy.
  6. myGitFix = pkgs.writeShellScriptBin "git-fix" ''
  7. if [ -d .git/objects/ ]; then
  8. find .git/objects/ -type f -empty | xargs rm -f
  9. git fetch -p
  10. git fsck --full
  11. fi
  12. exit 1
  13. '';
  14. in {
  15. home.packages = [ myGitFix ];
  16. programs.git = {
  17. enable = true;
  18. userName = "Christopher James Hayward";
  19. userEmail = "chris@chrishayward.xyz";
  20. signing = {
  21. key = "37AB1CB72B741E478CA026D43025DCBD46F81C0F";
  22. signByDefault = true;
  23. };
  24. };
  25. }