]> git.immae.eu Git - perso/Immae/Config/Nix/NUR.git/blobdiff - modules/secrets.nix
Finish moving aten php configuration to dedicated module
[perso/Immae/Config/Nix/NUR.git] / modules / secrets.nix
index 808b15c5bdeb886347a8f9c34f69891495e0999f..a2424e920fd78eb62021fb70bfb4db8bedb53e73 100644 (file)
       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;