feat: migrate homebrew packages to nix

This commit is contained in:
Michael Thomas 2024-01-09 14:15:50 -05:00
parent ae0cdfbc5d
commit 9570c81a28
3 changed files with 6 additions and 14 deletions

View File

@ -20,8 +20,6 @@
VISUAL = "nvim"; VISUAL = "nvim";
}; };
systemPackages = with pkgs; [ systemPackages = with pkgs; [
# Terminal
git
# Containers # Containers
colima colima
unstable.docker-client unstable.docker-client
@ -32,6 +30,8 @@
unstable.spicetify-cli unstable.spicetify-cli
# Java # Java
checkstyle checkstyle
# XCode
cocoapods
]; ];
}; };
@ -63,21 +63,13 @@
# Upgrade outdated formulae on activation # Upgrade outdated formulae on activation
upgrade = true; upgrade = true;
}; };
taps = [
"ddev/ddev"
"homebrew/cask-fonts"
];
brews = [ brews = [
"cocoapods"
"openjdk@17" "openjdk@17"
"bash" # Required for nix-shell to function properly
"ddev/ddev/ddev"
"firefoxpwa" "firefoxpwa"
]; ];
casks = [ casks = [
"hiddenbar" "hiddenbar"
"android-platform-tools" "android-platform-tools"
"font-caskaydia-cove-nerd-font"
"gcenx/wine/wineskin" "gcenx/wine/wineskin"
]; ];
}; };

View File

@ -14,10 +14,10 @@
firebird-emu firebird-emu
]; ];
# Add homebrew applications to path
programs.zsh = { programs.zsh = {
# Needed for nix-shell to have the correct bash version
profileExtra = '' profileExtra = ''
PATH=/opt/homebrew/bin:$PATH PATH=/run/current-system/sw/bin:$PATH
''; '';
prezto.pmodules = [ prezto.pmodules = [
"osx" "osx"

View File

@ -12,8 +12,8 @@
src = pkgs.fetchFromGitHub { src = pkgs.fetchFromGitHub {
owner = "chisui"; owner = "chisui";
repo = "zsh-nix-shell"; repo = "zsh-nix-shell";
rev = "v0.1.0"; rev = "v0.8.0";
sha256 = "0snhch9hfy83d4amkyxx33izvkhbwmindy0zjjk28hih1a9l2jmx"; sha256 = "1lzrn0n4fxfcgg65v0qhnj7wnybybqzs4adz7xsrkgmcsr0ii8b7";
}; };
} }
{ {