mirror of
https://github.com/harivansh-afk/nix.git
synced 2026-04-15 09:01:16 +00:00
symlink gcloud file
This commit is contained in:
parent
829c5dcd8e
commit
b8b3876ceb
1 changed files with 9 additions and 7 deletions
|
|
@ -1,11 +1,13 @@
|
||||||
{ lib, ... }:
|
{ lib, ... }:
|
||||||
{
|
{
|
||||||
xdg.configFile."gcloud/active_config".text = "default\n";
|
# Write gcloud config as mutable files (not Nix store symlinks) so that
|
||||||
|
# gcloud auth / gws auth can update them at runtime.
|
||||||
|
home.activation.gcloudConfig = lib.hm.dag.entryAfter [ "writeBoundary" ] ''
|
||||||
|
install -Dm644 /dev/null "$HOME/.config/gcloud/active_config"
|
||||||
|
printf 'default' > "$HOME/.config/gcloud/active_config"
|
||||||
|
|
||||||
xdg.configFile."gcloud/configurations/config_default".text = lib.generators.toINI { } {
|
install -Dm644 /dev/null "$HOME/.config/gcloud/configurations/config_default"
|
||||||
core = {
|
printf '[core]\naccount=rathiharivansh@gmail.com\nproject=hari-gc\n' \
|
||||||
account = "rathiharivansh@gmail.com";
|
> "$HOME/.config/gcloud/configurations/config_default"
|
||||||
project = "hari-gc";
|
'';
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue