Hi. I am trying to modify my homepage instance services.homepage-dashboard.services
.
This option uses pkgs.formats.yaml
on the backend to generate a yaml file.
I need this yaml file to be in the format:
- Group A:
- Service A:
href: http://localhost/
- Service B:
href: http://localhost/
I now I can get some of the way there by doing
[{
"Group A" = [{
"Service A" = {
href = "http://localhost/";
};
"Service A" = {
href = "http://localhost/";
};
}];
}]
This however gives the output
- Group A:
- Service B:
href: http://localhost/
Service A:
href: http://localhost/
What do I write to get both services to be part of the list.
Code to test in home manager
xdg.configFile."some/config.yaml".source =
(pkgs.formats.yaml { }).generate "something" ... ;