189
submitted 2 years ago* (last edited 2 years 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 13 points 2 years ago

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

[-] infeeeee@lemm.ee 32 points 2 years ago* (last edited 2 years ago)
what:
  is:
  your:
    - problem
    - with:
      YAML
# At least you can have comments unlike in json. Who need comments in a config file anyway.
[-] flubba86@lemmy.world 12 points 2 years ago

Toml is superior to all.

[-] itslilith@lemmy.blahaj.zone 11 points 2 years 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 8 points 2 years 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

[-] itslilith@lemmy.blahaj.zone 4 points 2 years 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

[-] FierySpectre@lemmy.world 2 points 2 years ago

Xml has entered the chat

[-] netvor@lemmy.world 1 points 2 years ago

nit: you mean yaml.safe_load().

[-] itslilith@lemmy.blahaj.zone 1 points 2 years ago

Oh yeah, of course.

[-] Zangoose@lemmy.world 9 points 2 years ago

Hey did you know that any JSON file is also a valid YAML file? I bet you'll love YAML a lot more now that you have this information

[-] corsicanguppy@lemmy.ca 5 points 2 years ago

Careful. The yaml cult will come after you in a long and formless column, and only self destruct when one of them is a step too far to the left.

this post was submitted on 13 Nov 2024
189 points (95.7% liked)

Selfhosted

62371 readers
1283 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:

Detailed Rules Post

  1. Be civil.

  2. No spam.

  3. Posts are to be related to self-hosting.

  4. Don't duplicate the full text of your blog or readme if you're providing a link.

  5. Submission headline should match the article title.

  6. No trolling.

  7. Promotion posts require active participation, with an account that is at least 30 days old. F/LOSS without a paywall has exceptions, with requirements. See the rules link for details. Tags [CBH] or [AIP] are required, see the links in Rule 8 for details.

  8. AI-related discussions and AI-involved promotional posts have additional requirements for tagging, as noted in Rule 7 and the AI & Promotional Post Expanded Rules post, and find example disclosures here.

Resources:

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

Questions? DM the mods!

founded 3 years ago
MODERATORS