mirror of
https://github.com/moons-14/dotfiles.git
synced 2026-10-06 07:48:12 +09:00
home: fix deprecated git and ssh option names
Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
This commit is contained in:
+7
-10
@@ -2,26 +2,22 @@
|
||||
{
|
||||
programs.git = {
|
||||
enable = true;
|
||||
userName = "moons-14";
|
||||
userEmail = "moons@moons14.com";
|
||||
|
||||
ignores = [
|
||||
".direnv/"
|
||||
".envrc"
|
||||
"!.envrc.example"
|
||||
];
|
||||
|
||||
extraConfig = {
|
||||
settings = {
|
||||
user.name = "moons-14";
|
||||
user.email = "moons@moons14.com";
|
||||
push.default = "simple";
|
||||
credential.helper = "cache --timeout=7200";
|
||||
init.defaultBranch = "main";
|
||||
log.decorate = "full"; # Show branch/tag info in git log
|
||||
log.date = "iso"; # ISO 8601 date format
|
||||
# Conflict resolution style for readable diffs
|
||||
log.decorate = "full";
|
||||
log.date = "iso";
|
||||
merge.conflictStyle = "diff3";
|
||||
};
|
||||
# Optional: FOSS-friendly Git aliases
|
||||
aliases = {
|
||||
alias = {
|
||||
br = "branch --sort=-committerdate";
|
||||
co = "checkout";
|
||||
df = "diff";
|
||||
@@ -32,4 +28,5 @@
|
||||
st = "status";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@@ -32,11 +32,12 @@
|
||||
};
|
||||
};
|
||||
|
||||
extraConfig = ''
|
||||
Host *
|
||||
AddKeysToAgent yes
|
||||
IdentityFile ~/.ssh/id_ed25519
|
||||
'';
|
||||
enableDefaultConfig = false;
|
||||
|
||||
matchBlocks."*" = {
|
||||
identityFile = "~/.ssh/id_ed25519";
|
||||
extraOptions.AddKeysToAgent = "yes";
|
||||
};
|
||||
};
|
||||
|
||||
home.activation.generateSshKey = lib.hm.dag.entryAfter [ "writeBoundary" ] ''
|
||||
@@ -58,7 +59,7 @@
|
||||
signByDefault = true;
|
||||
};
|
||||
|
||||
extraConfig = {
|
||||
settings = {
|
||||
gpg.format = "ssh";
|
||||
tag.gpgSign = true;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user