From f6d99030f55588e988bf0e3a510f423a1a182c6a Mon Sep 17 00:00:00 2001 From: Kiara Grouwstra Date: Sat, 3 Aug 2024 21:45:59 +0000 Subject: [PATCH] compose secrets.*.type: allow using file path --- src/nix/modules/secrets/secret.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nix/modules/secrets/secret.nix b/src/nix/modules/secrets/secret.nix index 687f453..8b09fd2 100644 --- a/src/nix/modules/secrets/secret.nix +++ b/src/nix/modules/secrets/secret.nix @@ -17,7 +17,7 @@ in The secret is created with the contents of the file at the specified path. ${secretRef "file"} ''; - type = types.nullOr types.str; + type = types.nullOr (types.either types.path types.str); }; environment = mkOption {