2021-02-14 02:38:20 +00: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
|
2021-03-02 00:44:23 +00:00
|
|
|
nix-shell -p cachix --run "cachix use nrdxp"
|
2021-02-17 21:15:43 +00:00
|
|
|
|
2021-10-11 22:32:01 +00:00
|
|
|
nix-shell https://github.com/divnix/devos/archive/main.tar.gz -A shell \
|
|
|
|
--run "bud get main"
|
2021-02-14 02:38:20 +00:00
|
|
|
|
2021-10-07 23:53:20 +00:00
|
|
|
cd devos
|
2021-02-14 02:38:20 +00:00
|
|
|
|
|
|
|
nix-shell
|
|
|
|
|
|
|
|
git init
|
|
|
|
git add .
|
|
|
|
git commit -m init
|
|
|
|
```
|
|
|
|
|
2021-10-07 23:53:20 +00:00
|
|
|
This will place you in a new folder named `devos` with git initialized, and a
|
2021-02-14 02:38:20 +00:00
|
|
|
nix-shell that provides all the dependencies, including the unstable nix
|
|
|
|
version required.
|
|
|
|
|
2021-04-19 02:26:27 +00:00
|
|
|
In addition, the [binary cache](../integrations/cachix.md) is added for faster deployment.
|
2021-02-14 02:38:20 +00:00
|
|
|
|
|
|
|
> ##### _Notes:_
|
|
|
|
> - Flakes ignore files that have not been added to git, so be sure to stage new
|
|
|
|
> files before building the system.
|
2021-02-17 21:15:43 +00:00
|
|
|
> - You can choose to simply clone the repo with git if you want to follow
|
|
|
|
> upstream changes.
|
2021-05-24 08:28:52 +00:00
|
|
|
> - 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 02:38:20 +00:00
|
|
|
|
|
|
|
## Next Steps:
|
|
|
|
- [Make installable ISO](./iso.md)
|
2021-03-17 00:19:01 +00:00
|
|
|
- [Bootstrap Host](./bootstrapping.md)
|
2021-02-14 02:38:20 +00:00
|
|
|
- [Already on NixOS](./from-nixos.md)
|
|
|
|
|
|
|
|
|
|
|
|
[install-nix]: https://nixos.org/manual/nix/stable/#sect-multi-user-installation
|