From d5d9e67deab2b0b9e2f51fa43c6c1d901776d1b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Na=C3=AFm=20Favier?= Date: Sun, 23 Jan 2022 13:39:26 +0100 Subject: [PATCH] Allow paths in sops.environment Useful for things like `sops.environment.SOPS_GPG_EXEC = pkgs.writeShellScript ...` --- modules/sops/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/sops/default.nix b/modules/sops/default.nix index 317189a..c4f9452 100644 --- a/modules/sops/default.nix +++ b/modules/sops/default.nix @@ -192,7 +192,7 @@ in { }; environment = mkOption { - type = types.attrsOf types.str; + type = types.attrsOf (types.either types.str types.path); default = {}; description = '' Environment variables to set before calling sops-install-secrets.