pinwheel: Open gcloud links in work firefox profile

This commit is contained in:
Alexander Heldt committed 2026-10-02 08:59:12 +02:00
1 parent 5d4f43c5f8
commit 935b3022e2
1 file changed
+15 -3
+15 -3
View File
@@ -21,6 +21,20 @@ let
wrapProgram $out/bin/gt --prefix PATH : ${xdg-open-work}/bin
'';
};
# `gcloud auth login` opens the browser via python's `webbrowser`, which
# follows `$BROWSER` rather than `xdg-open`.
google-cloud-sdk = pkgs.symlinkJoin {
name = "google-cloud-sdk";
paths = [
(pkgs.google-cloud-sdk.withExtraComponents [
pkgs.google-cloud-sdk.components.gke-gcloud-auth-plugin
])
];
nativeBuildInputs = [ pkgs.makeWrapper ];
postBuild = ''
wrapProgram $out/bin/gcloud --set BROWSER ff-work
'';
};
in
{
home-manager.users.alex = {
@@ -85,9 +99,7 @@ EOF
])
pkgs.bashInteractive
(pkgs.google-cloud-sdk.withExtraComponents [
pkgs.google-cloud-sdk.components.gke-gcloud-auth-plugin
])
google-cloud-sdk
graphite-cli