Migrate Zsh config
This commit is contained in:
68
homes/aarch64-darwin/yadunut@yadunut-mbp/default.nix
Normal file
68
homes/aarch64-darwin/yadunut@yadunut-mbp/default.nix
Normal file
@@ -0,0 +1,68 @@
|
||||
{
|
||||
lib,
|
||||
pkgs,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
{
|
||||
# This value determines the Home Manager release that your configuration is
|
||||
# compatible with. This helps avoid breakage when a new Home Manager release
|
||||
# introduces backwards incompatible changes.
|
||||
#
|
||||
# You should not change this value, even if you update Home Manager. If you do
|
||||
# want to update the value, then make sure to first check the Home Manager
|
||||
# release notes.
|
||||
home.stateVersion = "23.11"; # Please read the comment before changing.
|
||||
|
||||
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
|
||||
];
|
||||
|
||||
home.sessionVariables = {
|
||||
JAVA_HOME = "/Library/Java/JavaVirtualMachines/zulu-17.jdk/Contents/Home";
|
||||
ANDROID_HOME = "$HOME/Library/Android/sdk";
|
||||
};
|
||||
|
||||
home.sessionPath = [
|
||||
"$ANDROID_HOME/emulator"
|
||||
"$ANDROID_HOME/platform-tools"
|
||||
"/opt/homebrew/bin"
|
||||
];
|
||||
|
||||
programs.zsh.shellAliases = {
|
||||
lg = "lazygit";
|
||||
};
|
||||
|
||||
zsh.enable = true;
|
||||
|
||||
# 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;
|
||||
defaults.NSGlobalDomain.AppleShowAllExtensions = true;
|
||||
defaults.NSGlobalDomain.KeyRepeat = 2;
|
||||
defaults.NSGlobalDomain.ApplePressAndHoldEnabled = false;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user