From 163c2dee18ab2b197fe1fcf00cf32214b804fda6 Mon Sep 17 00:00:00 2001 From: "Simen A. W. Olsen" Date: Tue, 27 Oct 2026 11:50:20 +0100 Subject: feat: add helium as default browser, just and asciinema --- modules/home/helium.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 modules/home/helium.nix (limited to 'modules/home/helium.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 + ''; +} -- cgit v1.3.1