aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/deployment/keyrings.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/deployment/keyrings.nix b/modules/deployment/keyrings.nix
index e5d0110..9325bf7 100644
--- a/modules/deployment/keyrings.nix
+++ b/modules/deployment/keyrings.nix
@@ -17,7 +17,7 @@ let
# error: the contents of the file ‘...’ cannot be represented as a Nix string
read = key:
let
- m = match "^([^(]*)\\[.+\\]$" key;
+ m = match "^(.+)@[^@]+$" key;
s = if m != null then head m else key;
in if cfg.secrets != null
then readFile (cfg.secrets + "/${s}")