mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-25 17:15:36 +00:00
53 lines
1.9 KiB
Nix
53 lines
1.9 KiB
Nix
{ config, pkgs, lib, ... }: {
|
|
|
|
# Homebrew - Mac-specific packages that aren't in Nix
|
|
config = lib.mkIf pkgs.stdenv.isDarwin {
|
|
|
|
# Requires Homebrew to be installed
|
|
system.activationScripts.preUserActivation.text = ''
|
|
if ! xcode-select --version 2>/dev/null; then
|
|
$DRY_RUN_CMD xcode-select --install
|
|
fi
|
|
if ! /opt/homebrew/bin/brew --version 2>/dev/null; then
|
|
$DRY_RUN_CMD /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
|
|
fi
|
|
'';
|
|
|
|
# Add homebrew paths to CLI path
|
|
home-manager.users.${config.user}.home.sessionPath =
|
|
[ "/opt/homebrew/bin/" ];
|
|
|
|
homebrew = {
|
|
enable = true;
|
|
onActivation = {
|
|
autoUpdate = false; # Don't update during rebuild
|
|
cleanup = "zap"; # Uninstall all programs not declared
|
|
upgrade = true;
|
|
};
|
|
global = {
|
|
brewfile = true; # Run brew bundle from anywhere
|
|
lockfiles = false; # Don't save lockfile (since running from anywhere)
|
|
};
|
|
brews = [
|
|
"trash" # Delete files and folders to trash instead of rm
|
|
"openjdk" # Required by Apache Directory Studio
|
|
];
|
|
casks = [
|
|
"1password" # 1Password will not launch from Nix on macOS
|
|
"apache-directory-studio" # Packaging on Nix is not available for macOS
|
|
# "gitify" # Git notifications in menu bar (downgrade manually from 4.6.1)
|
|
"keybase" # GUI on Nix not available for macOS
|
|
# "logitech-g-hub" # Mouse and keyboard management
|
|
"logitune" # Logitech webcam firmware
|
|
"meetingbar" # Show meetings in menu bar
|
|
# "obsidian" # Obsidian packaging on Nix is not available for macOS
|
|
"scroll-reverser" # Different scroll style for mouse vs. trackpad
|
|
# "steam" # Not packaged for Nix
|
|
# "epic-games" # Not packaged for Nix
|
|
];
|
|
};
|
|
|
|
};
|
|
|
|
}
|