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; };
|
||||
in
|
||||
lib.mapAttrs (path: attrs:
|
||||
attrs // (getKey path)) secrets;
|
||||
(getKey path) // attrs) secrets;
|
||||
|
||||
attachSopsPathPrefix = prefix: secrets:
|
||||
lib.mapAttrs'
|
||||
(key: settings:
|
||||
lib.nameValuePair
|
||||
"${prefix}/${key}"
|
||||
settings // { inherit key; })
|
||||
({ inherit key; } // settings))
|
||||
secrets;
|
||||
|
||||
getUsers = type: users:
|
||||
|
Loading…
Reference in New Issue
Block a user