Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Created a file about templates, created several starter files, added … #91

Draft
wants to merge 15 commits into
base: main
Choose a base branch
from

Conversation

zimbatm
Copy link
Member

@zimbatm zimbatm commented Mar 13, 2025

…beginning of new section in install.md

Copy link
Member Author

@zimbatm zimbatm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice, it's on the right track

Comment on lines +147 to +148
place pre-built flakes. For example, on another project, you might have
built a flake that configures mysql. In that project you placed it in
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
place pre-built flakes. For example, on another project, you might have
built a flake that configures mysql. In that project you placed it in
place pre-built packages. For example, on another project, you might have
built a package that configures mysql. In that project you placed it in

Typically you would say "flake" to refer to the whole repository. And then package or "derivation" for those units of build.

Copy link
Member

@phaer phaer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! I see this is still a draft, but nevertheless left some comments. Hope they are useful, feel free to ignore if not - might be a bit on the pedantic side 😅

nit: Line lengths seem to be quite inconsistent here. My personal preference would be to use explicit newlines for paragraphs only. Or use one line per sentence for improved diffs. Anything else is also fine, as long as it's consistent.


Blueprint comes with several templates to help you get started with your project.

> Note: We are continuing to add additional templates. Please check back periodically.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we - as an ongoing effort? Maybe a call to action, such as "Let us know if you are missing one" or "You are welcome to contribute new one" could be useful here or at the end?

> Note: We are continuing to add additional templates. Please check back periodically.

To install from a template, specify the template name after the initial flake init
command, preceded by a hash symbol. For example, to use the template called system
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the order here is confusing, because this comes before the "initial flake init command" and the part about the hash symbol might be confusing without explicitly mentioning the URL. I think less could be more here, as the complete command follows right after :)

Their respective configuration files both import a shared
`modules/nixos/host-shared.nix` module between them.

Also, both hosts define a `me` user and their home-managed configuration
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Also, both hosts define a `me` user and their home-managed configuration
Also, both hosts define a `me` user and their home-manager configuration

Also, both hosts define a `me` user and their home-managed configuration
simply imports `modules/homes/home-shared.nix`.

Finally, notice in the root flake.nix we're adding the home-manager and nix-darwin
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Finally, notice in the root flake.nix we're adding the home-manager and nix-darwin
Finally, notice in the root `flake.nix` we're adding the home-manager and nix-darwin

how to share configurations between different system and home environments on different hosts.


## Toml-DevEnvs
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might not hurt to include it, but it's a comparatively niche use-case IMO, and I'd rather just link to devshells README as you do with system-manager below.


> NOTE: It's better to use `perSystem` composition style instead of overlays if you can.

If set, blueprint will create a new instance of nixpkgs for each systems, with the passed config.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is currently exactly the same as nixpkgs.config above. Is this by mistake or just an open TODO?

@@ -69,6 +69,8 @@ Let's set up a development environment that includes:
* Python
* Python's numpy package

> **TIP:** In this section we'll be creating a default developer environment. You can also set up multiple developer environments and place them in the devshell folder as shown in the devshell section [here](folder_structure.md).
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: either use all caps for "tip" above or don't do here.

Suggested change
> **TIP:** In this section we'll be creating a default developer environment. You can also set up multiple developer environments and place them in the devshell folder as shown in the devshell section [here](folder_structure.md).
> **Tip:** In this section we'll be creating a default developer environment. You can also set up multiple developer environments and place them in the devshell folder as shown in the devshell section [here](folder_structure.md).

```

> Because Blueprint is present, this code will get located automatically. And notice
how it can be reused; indeed for this example, we simply copied it over from the
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think newslines break the quote here. Also probably intended a "Tip:" or something here?

mike
mkdocs
mkdocs-material
mkdocs-awesome-pages-plugin
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was just renamed to mkdocs-awesome-nav in its newest release. (Landed in nixos-unstable just yesterday after NixOS/nixpkgs#389086 was merged and will therefore be in 25.05)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants