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