mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 04:58:01 +00:00
lib/private: fix key override for getting secrets
The secrets key and path shouldn't be overridden by the functions. The fix was simpler than I thought.
This commit is contained in:
parent
426e4e360a
commit
0aa69a1ad8
@ -32,14 +32,14 @@ rec {
|
|||||||
getKey = key: { inherit key sopsFile; };
|
getKey = key: { inherit key sopsFile; };
|
||||||
in
|
in
|
||||||
lib.mapAttrs (path: attrs:
|
lib.mapAttrs (path: attrs:
|
||||||
attrs // (getKey path)) secrets;
|
(getKey path) // attrs) secrets;
|
||||||
|
|
||||||
attachSopsPathPrefix = prefix: secrets:
|
attachSopsPathPrefix = prefix: secrets:
|
||||||
lib.mapAttrs'
|
lib.mapAttrs'
|
||||||
(key: settings:
|
(key: settings:
|
||||||
lib.nameValuePair
|
lib.nameValuePair
|
||||||
"${prefix}/${key}"
|
"${prefix}/${key}"
|
||||||
settings // { inherit key; })
|
({ inherit key; } // settings))
|
||||||
secrets;
|
secrets;
|
||||||
|
|
||||||
getUsers = type: users:
|
getUsers = type: users:
|
||||||
|
Loading…
Reference in New Issue
Block a user