Migrate git configuration

This commit is contained in:
2025-08-18 13:38:40 +08:00
parent b8c758615b
commit 5cd56ddcf3
2 changed files with 119 additions and 17 deletions

View File

@@ -17,14 +17,11 @@
home.packages = [
# pkgs.dive
pkgs.entr
pkgs.lazygit
pkgs.jq
pkgs.just
pkgs.rsync
pkgs.gh
pkgs.claude-code
pkgs.devenv
pkgs.jujutsu
pkgs.dive
];
@@ -39,25 +36,16 @@
"/opt/homebrew/bin"
];
programs.zsh.shellAliases = {
lg = "lazygit";
};
zsh.enable = true;
git = {
enable = true;
gpgProgram = "/Applications/1Password.app/Contents/MacOS/op-ssh-sign";
signingKey = "~/.ssh/yadunut_ed25519.pub";
};
# Let Home Manager install and manage itself.
programs.home-manager.enable = true;
programs.git.extraConfig = {
gpg.ssh.program = "/Applications/1Password.app/Contents/MacOS/op-ssh-sign";
user.signingkey = "~/.ssh/yadunut_ed25519.pub";
core.excludesFile = "~/.gitignore_global";
};
programs.gh = {
enable = true;
};
targets.darwin = {
defaults."com.apple.dock".autohide = true;
defaults."com.apple.finder".AppleShowAllFiles = true;