mirror of
https://github.com/harivansh-afk/nix.git
synced 2026-04-15 03:00:47 +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, ... }:
|
||||
{
|
||||
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 { } {
|
||||
core = {
|
||||
account = "rathiharivansh@gmail.com";
|
||||
project = "hari-gc";
|
||||
};
|
||||
};
|
||||
install -Dm644 /dev/null "$HOME/.config/gcloud/configurations/config_default"
|
||||
printf '[core]\naccount=rathiharivansh@gmail.com\nproject=hari-gc\n' \
|
||||
> "$HOME/.config/gcloud/configurations/config_default"
|
||||
'';
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue