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

Add minimal NixOS example #501

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions doc/start/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,21 @@

The only dependency is nix, so make sure you have it [installed][install-nix].

## Get the Template
## Get a Template

If you currently don't have flakes setup, you can utilize the digga shell to
pull the template:
If you currently don't have flakes support, you can temporarily enable them:

```sh
nix-shell "https://github.com/divnix/digga/archive/main.tar.gz" \
--run "nix flake init -t github:divnix/digga"
nix flake init --experimental-features 'nix-command flakes' -t github:divnix/digga
```

If you already have flakes support, you can directly pull the template:
If you already have flakes support, you can simply pull the template:

```sh
nix flake init -t github:divnix/digga
```

Then make sure to create the git repository:
Make sure to create the git repository:

```sh
git init
Expand All @@ -35,15 +33,17 @@ In addition, the [binary cache](../integrations/cachix.md) is added for faster d

> # _Notes:_
>
> - Flakes ignore files that have not been added to git, so be sure to stage new
> - Flakes ignore files that are not tracked by git, so be sure to stage new
> files before building the system.
> - You can choose to simply clone the repo with git if you want to follow
> upstream changes.
> - If the `nix-shell -p cachix --run "cachix use nrdxp"` line doesn't work you
> can try with sudo: `sudo nix-shell -p cachix --run "cachix use nrdxp"`
> - There are other templates. The default is `devos`, which is opinionated and
> implements the most features. Other templates can be found with
> `nix flake show` or by viewing Digga's flake.nix. Other templates can be
> used with `nix flake init -t github:divnix/digga#<templateName>`

## Next Steps

- [Make installable ISO](./iso.md)
- [Make an installable ISO](./iso.md)

[install-nix]: https://nixos.org/manual/nix/stable/#sect-multi-user-installation
Loading