Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions nixos/lib/utils.nix
Original file line number Diff line number Diff line change
Expand Up @@ -219,14 +219,14 @@ let
let
escapedName = ''"${replaceStrings [ ''"'' "\\" ] [ ''\"'' "\\\\" ] name}"'';
in
recurse (prefix + "." + escapedName) item.${name}
recurse (prefix + (if prefix == "." then "" else ".") + escapedName) item.${name}
) (attrNames item)
else if isList item then
imap0 (index: item: recurse (prefix + "[${toString index}]") item) item
else
[ ];
in
listToAttrs (flatten (recurse "" item));
listToAttrs (flatten (recurse "." item));

/*
Takes an attrset and a file path and generates a bash snippet that
Expand Down
Loading