fix Discord on macOS: use Homebrew cask instead of broken nixpkgs bundle

This commit is contained in:
Noah Masur
2026-07-20 17:50:54 -04:00
parent 27917ffede
commit 638b112db9
3 changed files with 9 additions and 2 deletions
@@ -27,6 +27,7 @@ in
cask "notunes" # Don't launch Apple Music with the play button cask "notunes" # Don't launch Apple Music with the play button
cask "topnotch" # Darkens the menu bar to complete black cask "topnotch" # Darkens the menu bar to complete black
cask "ghostty" # Terminal application (not buildable on Nix on macOS) cask "ghostty" # Terminal application (not buildable on Nix on macOS)
cask "discord" # nixpkgs bundle breaks its notarization seal on macOS 26+
# Mac App Store apps (requires 'mas' CLI, optional) # Mac App Store apps (requires 'mas' CLI, optional)
# mas "Tailscale", id: 1475387142 # mas "Tailscale", id: 1475387142
@@ -56,7 +56,10 @@ in
"/System/Applications/Mail.app" "/System/Applications/Mail.app"
"/Applications/zoom.us.app" "/Applications/zoom.us.app"
"${config.programs.ghostty.package}/Applications/Ghostty.app" "${config.programs.ghostty.package}/Applications/Ghostty.app"
"${pkgs.discord}/Applications/Discord.app" # Discord comes from Homebrew on macOS: the nixpkgs bundle is
# modified in place, breaking its notarization seal, so macOS 26+
# refuses to launch it ("damaged"). See presets/programs/homebrew.nix.
"/Applications/Discord.app"
"${pkgs.obsidian}/Applications/Obsidian.app" "${pkgs.obsidian}/Applications/Obsidian.app"
"${pkgs.thunderbird}/Applications/Thunderbird.app" "${pkgs.thunderbird}/Applications/Thunderbird.app"
]; ];
@@ -50,7 +50,10 @@ in
"/System/Applications/Mail.app" "/System/Applications/Mail.app"
"/Applications/zoom.us.app" "/Applications/zoom.us.app"
"/Applications/Ghostty.app" "/Applications/Ghostty.app"
"${pkgs.discord}/Applications/Discord.app" # Discord comes from Homebrew on macOS: the nixpkgs bundle is modified
# in place, breaking its notarization seal, so macOS 26+ refuses to
# launch it ("damaged").
"/Applications/Discord.app"
"${pkgs.obsidian}/Applications/Obsidian.app" "${pkgs.obsidian}/Applications/Obsidian.app"
"${pkgs.thunderbird}/Applications/Thunderbird.app" "${pkgs.thunderbird}/Applications/Thunderbird.app"
]; ];