gcloud: move package hacks ot its own module

This commit is contained in:
2025-10-22 16:43:51 +00:00
parent 5210c17354
commit 30af597c1c
6 changed files with 24 additions and 24 deletions

View File

@@ -1,21 +1,4 @@
{ config, pkgs, ... }:
let
gcloud-wrapped = pkgs.symlinkJoin {
name = "google-cloud-sdk-wrapped";
paths = [ pkgs.google-cloud-sdk ];
nativeBuildInputs = [ pkgs.makeWrapper ];
postBuild = ''
# Remove the original gcloud symlink
rm $out/bin/gcloud
# Create a shell wrapper called gcloud-wrapped that executes the real gcloud
makeWrapper ${pkgs.google-cloud-sdk}/bin/gcloud $out/bin/gcloud-wrapped
# Replace gcloud with our caching wrapper
ln -s ${pkgs.gcloud-wrapper}/bin/gcloud-wrapper $out/bin/gcloud
'';
};
in
{
mj.base.users.email = null;