pinwheel: Open gcloud links in work firefox profile
This commit is contained in:
1 file changed
+15
-3
@@ -21,6 +21,20 @@ let
|
|||||||
wrapProgram $out/bin/gt --prefix PATH : ${xdg-open-work}/bin
|
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
|
in
|
||||||
{
|
{
|
||||||
home-manager.users.alex = {
|
home-manager.users.alex = {
|
||||||
@@ -85,9 +99,7 @@ EOF
|
|||||||
])
|
])
|
||||||
pkgs.bashInteractive
|
pkgs.bashInteractive
|
||||||
|
|
||||||
(pkgs.google-cloud-sdk.withExtraComponents [
|
google-cloud-sdk
|
||||||
pkgs.google-cloud-sdk.components.gke-gcloud-auth-plugin
|
|
||||||
])
|
|
||||||
|
|
||||||
graphite-cli
|
graphite-cli
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user