nix/homes/aarch64-darwin/yadunut@yadunut-mbp/default.nix
2025-08-18 22:55:33 +08:00

58 lines
1.5 KiB
Nix

{
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.jq
pkgs.just
pkgs.rsync
pkgs.claude-code
pkgs.devenv
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"
];
zsh.enable = true;
neovim.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;
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;
};
}