From 717ccfd957e686d773480df817387aebbe79aa48 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Bouya?= Date: Sun, 2 Jun 2019 09:48:05 +0200 Subject: Finish moving aten php configuration to dedicated module --- modules/secrets.nix | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'modules/secrets.nix') diff --git a/modules/secrets.nix b/modules/secrets.nix index 808b15c..a2424e9 100644 --- a/modules/secrets.nix +++ b/modules/secrets.nix @@ -11,7 +11,16 @@ default = "/var/secrets"; description = "Location where to put the keys"; }; + # Read-only variables + fullPaths = lib.mkOption { + type = lib.types.attrsOf lib.types.path; + default = builtins.listToAttrs + (map (v: { name = v.dest; value = "${config.secrets.location}/${v.dest}"; }) config.secrets.keys); + readOnly = true; + description = "set of full paths to secrets"; + }; }; + config = let location = config.secrets.location; keys = config.secrets.keys; -- cgit v1.2.3