1
1
mirror of https://github.com/divnix/digga.git synced 2024-11-30 00:48:21 +03:00
digga/doc/start/index.md

44 lines
1.3 KiB
Markdown
Raw Normal View History

2021-02-14 05:38:20 +03:00
# Quick Start
The only dependency is nix, so make sure you have it [installed][install-nix].
## Get the Template
Here is a snippet that will get you the template without the git history:
```sh
nix-shell -p cachix --run "cachix use nrdxp"
2021-02-18 04:31:33 +03:00
nix-shell https://github.com/divnix/devos/archive/core.tar.gz -A shell \
2021-02-14 05:38:20 +03:00
--run "flk get core"
cd flk
nix-shell
git init
git add .
git commit -m init
```
This will place you in a new folder named `flk` with git initialized, and a
nix-shell that provides all the dependencies, including the unstable nix
version required.
2021-04-19 05:26:27 +03:00
In addition, the [binary cache](../integrations/cachix.md) is added for faster deployment.
2021-02-14 05:38:20 +03:00
> ##### _Notes:_
2021-02-15 03:41:15 +03:00
> - You can change `core` to [`community`](../../index.md#community-profiles)
2021-02-14 05:38:20 +03:00
> in the call to `flk get`
> - Flakes ignore files that have not been added to 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"`
2021-02-14 05:38:20 +03:00
## Next Steps:
- [Make installable ISO](./iso.md)
- [Bootstrap Host](./bootstrapping.md)
2021-02-14 05:38:20 +03:00
- [Already on NixOS](./from-nixos.md)
[install-nix]: https://nixos.org/manual/nix/stable/#sect-multi-user-installation