diff options
Diffstat (limited to 'modules/home')
| -rw-r--r-- | modules/home/default.nix | 1 | ||||
| -rw-r--r-- | modules/home/helium.nix | 12 |
2 files changed, 13 insertions, 0 deletions
diff --git a/modules/home/default.nix b/modules/home/default.nix index 2bd21df..5331684 100644 --- a/modules/home/default.nix +++ b/modules/home/default.nix @@ -6,6 +6,7 @@ ./claude.nix ./git.nix ./ghostty.nix + ./helium.nix ./herdr.nix ./onepassword.nix ./starship.nix diff --git a/modules/home/helium.nix b/modules/home/helium.nix new file mode 100644 index 0000000..3c7fef9 --- /dev/null +++ b/modules/home/helium.nix @@ -0,0 +1,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 + ''; +} |
