mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 10:58:02 +00:00
lib/private: add attachSopsPathPrefix
This commit is contained in:
parent
1027f97333
commit
2677400a43
@ -34,6 +34,14 @@ rec {
|
|||||||
lib.mapAttrs (path: attrs:
|
lib.mapAttrs (path: attrs:
|
||||||
attrs // (getKey path)) secrets;
|
attrs // (getKey path)) secrets;
|
||||||
|
|
||||||
|
attachSopsPathPrefix = prefix: secrets:
|
||||||
|
lib.mapAttrs'
|
||||||
|
(key: settings:
|
||||||
|
lib.nameValuePair
|
||||||
|
"${prefix}/${key}"
|
||||||
|
settings // { inherit key; })
|
||||||
|
secrets;
|
||||||
|
|
||||||
getUsers = type: users:
|
getUsers = type: users:
|
||||||
let
|
let
|
||||||
userModules = lib.filesToAttr ../users/${type};
|
userModules = lib.filesToAttr ../users/${type};
|
||||||
|
Loading…
Reference in New Issue
Block a user