blob: 3c7fef934de75acc44ba6b52ca8e8bf2f8f5572d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
{ pkgs, lib, ... }:
lib.mkIf pkgs.stdenv.hostPlatform.isDarwin {
# Helium itself is a Homebrew cask (modules/darwin/homebrew.nix). macOS asks
# for confirmation the first time the default browser changes; later runs
# are no-ops once Helium is already the handler.
home.activation.setDefaultBrowser = lib.hm.dag.entryAfter [ "writeBoundary" ] ''
if [ -d /Applications/Helium.app ]; then
$DRY_RUN_CMD ${pkgs.defaultbrowser}/bin/defaultbrowser helium
fi
'';
}
|