From 2c0ab0a50863b166db5a9ca22647b02e2ec8665f Mon Sep 17 00:00:00 2001 From: Harivansh Rathi Date: Sat, 4 Apr 2026 19:19:05 -0400 Subject: [PATCH] helium darwin --- home/default.nix | 1 + home/helium.nix | 22 ++++++++++++++++++++++ modules/homebrew.nix | 1 + 3 files changed, 24 insertions(+) create mode 100644 home/helium.nix diff --git a/home/default.nix b/home/default.nix index e3fc1f0..50a110c 100644 --- a/home/default.nix +++ b/home/default.nix @@ -9,6 +9,7 @@ ] ++ lib.optionals hostConfig.isDarwin [ ./colima.nix + ./helium.nix ./rectangle.nix ./karabiner.nix ] diff --git a/home/helium.nix b/home/helium.nix new file mode 100644 index 0000000..5c2c4dc --- /dev/null +++ b/home/helium.nix @@ -0,0 +1,22 @@ +{ ... }: +let + extensions = { + "ddkjiahejlhfcafbddmgiahcphecmpfh" = "uBlock Origin Lite"; + "fcoeoabgfenejglbffodgkkbkcdhcgfn" = "Claude for Chrome"; + "nngceckbapebfimnlniiiahkandclblb" = "Bitwarden"; + }; + + extJson = builtins.toJSON { + external_update_url = "https://clients2.google.com/service/update2/crx"; + }; + + extDir = "Library/Application Support/net.imput.helium/External Extensions"; +in +{ + home.file = builtins.listToAttrs ( + builtins.map (id: { + name = "${extDir}/${id}.json"; + value.text = extJson; + }) (builtins.attrNames extensions) + ); +} diff --git a/modules/homebrew.nix b/modules/homebrew.nix index 55cab3d..ad8f920 100644 --- a/modules/homebrew.nix +++ b/modules/homebrew.nix @@ -20,6 +20,7 @@ casks = [ "cap" + "helium-browser" "karabiner-elements" "rectangle" "raycast"