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.

28 lines
599 B

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