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

docs: How to use? #25

Open
woile opened this issue Jun 24, 2023 · 9 comments
Open

docs: How to use? #25

woile opened this issue Jun 24, 2023 · 9 comments
Labels
documentation Improvements or additions to documentation

Comments

@woile
Copy link

woile commented Jun 24, 2023

Thanks for this amazing project. I think it's exactly what I've been looking for 💪🏻

I was wondering if some documentation could be added explaining how to use it.
Similar to this explanation: https://github.com/srid/nixos-config#setup

And also an explanation of what would happen next, does a user have to run nix run every time?
How to remove afterwards?

Thanks!

@srid srid added the documentation Improvements or additions to documentation label Jun 24, 2023
@srid
Copy link
Owner

srid commented Jun 24, 2023

Yea, we definitely should flesh out docs. Contributions welcome! Is there anything to be added to https://zero-to-flakes.com/nixos-flake/start to begin with?

For home-manager, we can adapt the asciicast in https://github.com/juspay/nix-dev-home

@woile
Copy link
Author

woile commented Jun 24, 2023

I mentioned the link to the setup because I couldn't find which command to run in the docs. For a beginner it's not clear which flake command would modify the os. I can add this in a PR and discuss it there.

I would also add a brief explanation about how home-manager and nix-darwin modify the host, as a beginner for example I wonder: is it gonna delete some important files? Am I gonna be able to revert these changes?

@srid
Copy link
Owner

srid commented Jun 26, 2023

Yes, the /start page can certainly be improved. It looks like you are using macOS, so the third step is detailed in the paragraph below the table of the page it links to:

image

@woile
Copy link
Author

woile commented Jul 21, 2023

I had not seen this, thanks! I was thinking maybe we can restructure the content in a more concise way (I can submit a PR if desired):

## Installation
nix install...

## Getting started
Running and adjusting template

## Usage
`nix run .#activate` ...

## Module outptus

btw your work has given me hope in nix again, amazing tools 💪🏻 thanks!

@srid
Copy link
Owner

srid commented Jul 22, 2023

@woile Yes, I'd absolutely love a PR on that!

The docs are being deployed here: https://zero-to-flakes.com/nixos-flake/

So the best way to contribute is to

  1. Clone https://github.com/juspay/zero-to-flakes
  2. Pull the submodules
  3. Run , run just run in the nix shell
  4. Edit ./ext/nixos-flake - and the preview should update

(I'll have to document this in detail somewhere)

@woile
Copy link
Author

woile commented Jul 23, 2023

I've cloned the repo and submodules with:

git submodule update --init --recursive

but I don't understand, shouldn't I send a PR to nixos-flake instead?

@srid
Copy link
Owner

srid commented Jul 29, 2023

Sorry, I didn't see this comment until now.

The full instructions are here: https://zero-to-flakes.com/about#contributing

shouldn't I send a PR to nixos-flake instead?

You edit the docs from zero-to-flakes repo, but commit and PR on nixos-flake, yes.

@srid srid pinned this issue Nov 28, 2023
@srid
Copy link
Owner

srid commented Jul 24, 2024

Note to self: one thing we should document is the much-useful flake argument, and provide examples: like how to access external flakes in one's config:

https://github.com/srid/nixos-config/blob/32de95896d7e5f6346634636f536df5dbc845d34/packages/overlay.nix#L12

@srid
Copy link
Owner

srid commented Oct 3, 2024

Just wanted to mention that this project is now renamed, and that there's some indirect documentation over at:

https://github.com/juspay/nixos-unified-template

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

No branches or pull requests

2 participants