Skip to content

Would an example folder be welcome? #170

Open
@woile

Description

@woile

Hi everyone, thanks for this awesome project. It does feel more intuitive and simpler to use than flake-utils, and I'm quite happy with it. But I'm struggling with the lack of examples. It took me a while to find how to use devShells, and I haven't seen much examples around (I'm relatively new to nix).

My goal would be to see at least one example for each different output supported by flake-parts. I could start sending a PR for the devShells example, and I was thinking it would be nice if we have examples for:

  • running commands (for example a set of commands: build, deploy)
  • configuring formatter (is it something to run things like black or rust fmt? I cannot tell from the docs)
  • apps (what are these for?)
  • checks (what are these for?)
  • nixosModules (I see one example for nixosConfigurations, but not for modules)

btw, I hope the above is correct, it's what I see when I run nix flake show 😅

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions