Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions home-manager/profiles/base.nix
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ in
neovim
];

# Stable path for macOS java_home and IDEA's JDK detection; JAVA_HOME's store path changes on every update
home.file."Library/Java/JavaVirtualMachines/zulu-25.jdk".source =
"${config.programs.java.package}/Library/Java/JavaVirtualMachines/zulu-25.jdk";

home.sessionVariables = {
EDITOR = "nvim";
VISUAL = "nvim";
Expand Down
25 changes: 25 additions & 0 deletions hosts/common/darwin/homebrew.nix
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
{
config,
lib,
pkgs,
username,
...
}:

let
caskNames = lib.concatMapStringsSep " " (c: lib.escapeShellArg c.name) config.homebrew.casks;
in
{
homebrew = {
enable = true;
Expand Down Expand Up @@ -56,4 +67,18 @@
"Xcode" = 497799835;
};
};

# Gatekeeper stays on (LSQuarantine default) for everything else; only apps from the casks
# declared above skip the "downloaded from the Internet" prompt. Homebrew removed --no-quarantine.
system.activationScripts.postActivation.text = lib.mkAfter ''
echo "❯❯❯❯ · Removing quarantine from declared Homebrew casks..."
apps=$(sudo --user=${username} --set-home env HOMEBREW_NO_AUTO_UPDATE=1 \
/opt/homebrew/bin/brew info --json=v2 --cask ${caskNames} 2>/dev/null \
| ${pkgs.jq}/bin/jq -r '.casks[].artifacts[] | select(has("app")) | .target // empty' || true)
while IFS= read -r app; do
if [ -d "$app" ] && xattr -p com.apple.quarantine "$app" >/dev/null 2>&1; then
xattr -dr com.apple.quarantine "$app" || true
fi
done <<< "$apps"
'';
}
2 changes: 2 additions & 0 deletions hosts/darwin/flow48/custom-dock.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"/Applications/Zen.app"

"/Applications/Zed.app"
"/Applications/IntelliJ IDEA.app"
"/Applications/iTerm.app"

"/Applications/Telegram.app"
Expand All @@ -12,6 +13,7 @@
"/Applications/Claude.app"

"/Applications/Spotify.app"
"/Applications/Notion.app"
];
};
}
3 changes: 3 additions & 0 deletions hosts/darwin/mac-pro/custom-dock.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,16 @@
"/Applications/Zen.app"

"/Applications/Zed.app"
"/Applications/IntelliJ IDEA.app"
"/Applications/iTerm.app"

"/Applications/Telegram.app"

"/Applications/Claude.app"

"/Applications/Spotify.app"

"/Applications/Notion.app"
];
};
}
Loading