From 638b112db9a2e9b5e4b552c0440db61d5597aeb9 Mon Sep 17 00:00:00 2001 From: Noah Masur <7386960+nmasur@users.noreply.github.com> Date: Mon, 20 Jul 2026 15:08:38 -0400 Subject: [PATCH] fix Discord on macOS: use Homebrew cask instead of broken nixpkgs bundle --- .../modules/nmasur/presets/programs/homebrew.nix | 1 + .../home-manager/modules/nmasur/presets/services/dock.nix | 5 ++++- .../nix-darwin/modules/nmasur/presets/services/dock.nix | 5 ++++- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/platforms/home-manager/modules/nmasur/presets/programs/homebrew.nix b/platforms/home-manager/modules/nmasur/presets/programs/homebrew.nix index aedf1da1..695fc64e 100644 --- a/platforms/home-manager/modules/nmasur/presets/programs/homebrew.nix +++ b/platforms/home-manager/modules/nmasur/presets/programs/homebrew.nix @@ -27,6 +27,7 @@ in cask "notunes" # Don't launch Apple Music with the play button cask "topnotch" # Darkens the menu bar to complete black 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) # mas "Tailscale", id: 1475387142 diff --git a/platforms/home-manager/modules/nmasur/presets/services/dock.nix b/platforms/home-manager/modules/nmasur/presets/services/dock.nix index 98c4e381..61c3a12b 100644 --- a/platforms/home-manager/modules/nmasur/presets/services/dock.nix +++ b/platforms/home-manager/modules/nmasur/presets/services/dock.nix @@ -56,7 +56,10 @@ in "/System/Applications/Mail.app" "/Applications/zoom.us.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.thunderbird}/Applications/Thunderbird.app" ]; diff --git a/platforms/nix-darwin/modules/nmasur/presets/services/dock.nix b/platforms/nix-darwin/modules/nmasur/presets/services/dock.nix index f3e9f9b3..2c7378ce 100644 --- a/platforms/nix-darwin/modules/nmasur/presets/services/dock.nix +++ b/platforms/nix-darwin/modules/nmasur/presets/services/dock.nix @@ -50,7 +50,10 @@ in "/System/Applications/Mail.app" "/Applications/zoom.us.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.thunderbird}/Applications/Thunderbird.app" ];