about summary refs log tree commit diff
path: root/home/gcloud
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2023-03-11 13:38:35 -0800
committerFranck Cuny <franck@fcuny.net>2023-03-11 13:41:17 -0800
commit8794ca07a79f64a05d8b9555ee652f21200aa476 (patch)
treee289f81ecface2e17e13f4d5741d9604a3019579 /home/gcloud
parentsecrets: use homeage to manage secrets for home-manager (diff)
downloadworld-8794ca07a79f64a05d8b9555ee652f21200aa476.tar.gz
secrets: move aptos' gcloud secrets to homeage
This secret is not needed system wide, I only need it to run some tools.
Diffstat (limited to 'home/gcloud')
-rw-r--r--home/gcloud/default.nix10
1 files changed, 7 insertions, 3 deletions
diff --git a/home/gcloud/default.nix b/home/gcloud/default.nix
index f886586..94f6eaa 100644
--- a/home/gcloud/default.nix
+++ b/home/gcloud/default.nix
@@ -1,4 +1,4 @@
-{ config, lib, pkgs, ... }:
+{ config, lib, pkgs, self, ... }:
 let cfg = config.my.home.gcloud;
 in
 {
@@ -6,6 +6,10 @@ in
     enable = mkEnableOption "google cloud sdk";
   };
 
-  config =
-    lib.mkIf cfg.enable { home.packages = with pkgs; [ google-cloud-sdk ]; };
+  config = lib.mkIf cfg.enable {
+    homeage.file."gcloud-dns-update.json" = {
+      source = "${self}/home/secrets/gcloud/dns-update.json.age";
+    };
+    home.packages = with pkgs; [ google-cloud-sdk ];
+  };
 }