serokell / deploy-rs

A simple multi-profile Nix-flake deploy tool.
Other
1.22k stars 100 forks source link

Failed to evaluate deployment data #270

Closed RyanGibb closed 2 months ago

RyanGibb commented 3 months ago

I'm getting Failed to evaluate deployment data: Error decoding the JSON from evaluation: invalid type: sequence, expected a map at line 1 column 9 when deploying the configuration at https://github.com/RyanGibb/nixos/blob/2fe1e6cbed66f52c2932364a9890902867043480/flake.nix#L189-L213

PhilTaken commented 2 months ago

builtins.map returns a list when a map is expected. you probably want to look at https://noogle.dev/f/builtins/listToAttrs

RyanGibb commented 2 months ago

Thanks! It's fixed at https://github.com/RyanGibb/nixos/blob/76c807b1e53336b21c47b8a53f832cb843345186/flake.nix#L189-L226