From 000409e402fc24d72d7c108a58ea497f2f8118a3 Mon Sep 17 00:00:00 2001 From: Sam Date: Thu, 9 Jan 2025 17:34:00 +0000 Subject: [PATCH] fix sops-nix issue with not creating secrets dir - caused by inclusion of dbt_profiles path in template --- hosts/common/optional/dbt_profiles.nix | 1 - hosts/common/optional/nixos-containers/baseddata-worker.nix | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/hosts/common/optional/dbt_profiles.nix b/hosts/common/optional/dbt_profiles.nix index 49a6e1b..9acb62a 100644 --- a/hosts/common/optional/dbt_profiles.nix +++ b/hosts/common/optional/dbt_profiles.nix @@ -4,7 +4,6 @@ let in { sops.templates."dbt_profiles.yml" = { - path = "/run/secrets/templates/dbt/profiles.yml"; mode = "0600"; content = '' baseddata: diff --git a/hosts/common/optional/nixos-containers/baseddata-worker.nix b/hosts/common/optional/nixos-containers/baseddata-worker.nix index 8c4059f..c645b59 100644 --- a/hosts/common/optional/nixos-containers/baseddata-worker.nix +++ b/hosts/common/optional/nixos-containers/baseddata-worker.nix @@ -94,8 +94,8 @@ in { isReadOnly = false; }; "/root/.dbt/profiles.yml" = { - hostPath = "/run/secrets/templates/dbt/profiles.yml"; - isReadOnly = false; + hostPath = "/run/secrets/rendered/dbt_profiles.yml"; + isReadOnly = true; }; };