174
submitted 2 days ago* (last edited 2 days ago) by possiblylinux127@lemmy.zip to c/selfhosted@lemmy.world

I never could get Nix working but maybe someone will

you are viewing a single comment's thread
view the rest of the comments
[-] cellardoor@lemmy.world 14 points 1 day ago

YAML?? (╯°□°)╯︵ ┻━┻)

[-] infeeeee@lemm.ee 30 points 1 day ago* (last edited 1 day ago)
what:
  is:
  your:
    - problem
    - with:
      YAML
# At least you can have comments unlike in json. Who need comments in a config file anyway.
[-] itslilith@lemmy.blahaj.zone 10 points 1 day ago

Nothing too major about how it's usually used, but the yaml spec does allow arbitrary code execution when parsing a file and relies on the parser to have that feature disabled: https://en.m.wikipedia.org/wiki/YAML#Security

That's why for python, yaml.save_load() is a thing. That's fine for your local config files and may even be a feature for you, but it shouldn't be used to exchange information between services.

[-] infeeeee@lemm.ee 7 points 1 day ago

My general view is similar, yaml is better if it should be written by humans, json is better if it should be written and read only by a machine. but hyprspace uses json for configuration, so I don't really understand cellardoor's comment

[-] FierySpectre@lemmy.world 2 points 15 hours ago

Xml has entered the chat

[-] itslilith@lemmy.blahaj.zone 4 points 1 day ago

Yeah I agree. Although recently I've become partial to toml... In the end I'll use what's common in the ecosystem I'm developing in

load more comments (2 replies)
load more comments (3 replies)
this post was submitted on 13 Nov 2024
174 points (96.3% liked)

Selfhosted

40173 readers
648 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 1 year ago
MODERATORS