Nix - filter and apply changes to attributes in a list

The change of the wallpaper / file path in plasma via config

  • currently the configuration contains only one desktop session

if that would be the nix-way?
:p lib.lists.forEach sessions (session : if session.manage == "desktop" then ( session // { start = "..."; }) else session )