pinwheel: Route browser links to work firefox profile from work checkouts
This commit is contained in:
2 files changed
+33
-38
No files matched your search
@@ -9,32 +9,6 @@ let
|
||||
gitEnabled = config.mod.git.enable;
|
||||
goEnabled = config.mod.go.enable;
|
||||
openvpnEnabled = config.mod.openvpn.enable;
|
||||
|
||||
xdg-open-work = pkgs.writeShellScriptBin "xdg-open" ''
|
||||
exec ff-work "$@"
|
||||
'';
|
||||
graphite-cli = pkgs.symlinkJoin {
|
||||
name = "graphite-cli";
|
||||
paths = [ pkgs.graphite-cli ];
|
||||
nativeBuildInputs = [ pkgs.makeWrapper ];
|
||||
postBuild = ''
|
||||
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 = {
|
||||
@@ -99,9 +73,11 @@ EOF
|
||||
])
|
||||
pkgs.bashInteractive
|
||||
|
||||
google-cloud-sdk
|
||||
(pkgs.google-cloud-sdk.withExtraComponents [
|
||||
pkgs.google-cloud-sdk.components.gke-gcloud-auth-plugin
|
||||
])
|
||||
|
||||
graphite-cli
|
||||
pkgs.graphite-cli
|
||||
|
||||
pkgs.postman
|
||||
pkgs.grpcurl
|
||||
|
||||
Reference in new issue
Block a user