diff options
author | Franck Cuny <franck@fcuny.net> | 2023-03-11 13:38:35 -0800 |
---|---|---|
committer | Franck Cuny <franck@fcuny.net> | 2023-03-11 13:41:17 -0800 |
commit | 8794ca07a79f64a05d8b9555ee652f21200aa476 (patch) | |
tree | e289f81ecface2e17e13f4d5741d9604a3019579 | |
parent | secrets: use homeage to manage secrets for home-manager (diff) | |
download | world-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.
-rw-r--r-- | home/gcloud/default.nix | 10 | ||||
-rw-r--r-- | home/secrets/gcloud/dns-update.json.age | bin | 0 -> 2512 bytes | |||
-rw-r--r-- | hosts/aptos/secrets/gcloud/world-nix.age | bin | 2859 -> 0 bytes | |||
-rw-r--r-- | hosts/aptos/secrets/secrets.nix | 5 |
4 files changed, 7 insertions, 8 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 ]; + }; } diff --git a/home/secrets/gcloud/dns-update.json.age b/home/secrets/gcloud/dns-update.json.age new file mode 100644 index 0000000..b2607a4 --- /dev/null +++ b/home/secrets/gcloud/dns-update.json.age Binary files differdiff --git a/hosts/aptos/secrets/gcloud/world-nix.age b/hosts/aptos/secrets/gcloud/world-nix.age deleted file mode 100644 index 0168f1e..0000000 --- a/hosts/aptos/secrets/gcloud/world-nix.age +++ /dev/null Binary files differdiff --git a/hosts/aptos/secrets/secrets.nix b/hosts/aptos/secrets/secrets.nix index 59e43a5..529e7f9 100644 --- a/hosts/aptos/secrets/secrets.nix +++ b/hosts/aptos/secrets/secrets.nix @@ -20,9 +20,4 @@ in publicKeys = [ root fcuny backup ]; owner = "fcuny"; }; - - "gcloud/world-nix.age" = { - publicKeys = [ root fcuny backup ]; - owner = "fcuny"; - }; } |