summaryrefslogtreecommitdiff
path: root/modules/secrets.nix
diff options
context:
space:
mode:
Diffstat (limited to 'modules/secrets.nix')
-rw-r--r--modules/secrets.nix9
1 files changed, 9 insertions, 0 deletions
diff --git a/modules/secrets.nix b/modules/secrets.nix
index 808b15c5..a2424e92 100644
--- a/modules/secrets.nix
+++ b/modules/secrets.nix
@@ -11,7 +11,16 @@
11 default = "/var/secrets"; 11 default = "/var/secrets";
12 description = "Location where to put the keys"; 12 description = "Location where to put the keys";
13 }; 13 };
14 # Read-only variables
15 fullPaths = lib.mkOption {
16 type = lib.types.attrsOf lib.types.path;
17 default = builtins.listToAttrs
18 (map (v: { name = v.dest; value = "${config.secrets.location}/${v.dest}"; }) config.secrets.keys);
19 readOnly = true;
20 description = "set of full paths to secrets";
21 };
14 }; 22 };
23
15 config = let 24 config = let
16 location = config.secrets.location; 25 location = config.secrets.location;
17 keys = config.secrets.keys; 26 keys = config.secrets.keys;