|
@ -1,7 +1,20 @@ |
|
|
# This file is controlled by /etc/dotfiles/README.org |
|
|
# This file is controlled by /etc/dotfiles/README.org |
|
|
{ pkgs, ... }: |
|
|
{ pkgs, ... }: |
|
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
|
let |
|
|
|
|
|
# Fix any corruptions in the local copy. |
|
|
|
|
|
myGitFix = pkgs.writeShellScriptBin "git-fix" '' |
|
|
|
|
|
if [ -d .git/objects/ ]; then |
|
|
|
|
|
find ./git/objects/ -type f -empty | xargs rm -f |
|
|
|
|
|
git fetch -p |
|
|
|
|
|
git fsck --full |
|
|
|
|
|
fi |
|
|
|
|
|
exit 1 |
|
|
|
|
|
''; |
|
|
|
|
|
|
|
|
|
|
|
in { |
|
|
|
|
|
home.packages = [ myGitFix ]; |
|
|
|
|
|
|
|
|
programs.git = { |
|
|
programs.git = { |
|
|
enable = true; |
|
|
enable = true; |
|
|
userName = "Christopher James Hayward"; |
|
|
userName = "Christopher James Hayward"; |
|
|