a
This commit is contained in:
parent
8bcf504acd
commit
306a946353
1 changed files with 38 additions and 4 deletions
42
README.md
42
README.md
|
@ -1,10 +1,12 @@
|
||||||
# dotnix
|
# dotnix
|
||||||
|
|
||||||
## Prerequisites
|
## Installation
|
||||||
|
|
||||||
|
### Prerequisites
|
||||||
|
|
||||||
You need to prepare a couple things before installation due to the way secrets are managed.
|
You need to prepare a couple things before installation due to the way secrets are managed.
|
||||||
|
|
||||||
### Prepare secrets repo
|
#### Prepare secrets repo
|
||||||
|
|
||||||
1. Ensure all required dependencies are present.
|
1. Ensure all required dependencies are present.
|
||||||
```sh
|
```sh
|
||||||
|
@ -60,9 +62,41 @@ git commit -m "batman"
|
||||||
git push --set-upstream origin master
|
git push --set-upstream origin master
|
||||||
```
|
```
|
||||||
|
|
||||||
8. Update the submodule to use your secrets repository.
|
8. Back up your keys.txt
|
||||||
|
This step is very important as you'll need to copy this file to your new installation.
|
||||||
|
Make sure you'll be able to securely copy it to another machine, you should handle this
|
||||||
|
file with much care as anyone who has it will be able to decrypt your secrets if the have
|
||||||
|
the files.
|
||||||
|
|
||||||
|
### Selecting a livecd for the installation
|
||||||
|
|
||||||
|
The installation should work on all the NixOS livecd images, other livecds are not supported.
|
||||||
|
Just make sure you have a way to get both your ssh key for cloning your secrets repository and
|
||||||
|
keys.txt for decrypting your sops files.
|
||||||
|
|
||||||
|
### Installation
|
||||||
|
|
||||||
|
1. Clone this repository
|
||||||
|
```sh
|
||||||
|
git clone https://github.com/c4em/dotnix.git
|
||||||
|
cd dotnix
|
||||||
|
```
|
||||||
|
|
||||||
|
2. Enter a nix-shell with all required dependencies for the installation
|
||||||
|
```sh
|
||||||
|
nix-shell # This will automatically install all dependencies from `shell.nix`
|
||||||
|
```
|
||||||
|
|
||||||
|
3. Update the submodule to use your secrets repository.
|
||||||
```sh
|
```sh
|
||||||
cd <Path to the configuration repo>
|
|
||||||
git submodule set-url -- secrets <ssh uri to your repository>
|
git submodule set-url -- secrets <ssh uri to your repository>
|
||||||
```
|
```
|
||||||
|
|
||||||
|
3. Adjust the configuration to your needs
|
||||||
|
Information about how the configuation is structured is available in the WIP section.
|
||||||
|
|
||||||
|
4. Run the installation script
|
||||||
|
```sh
|
||||||
|
./install.sh --host <your host> --device <the device to install NixOS on>
|
||||||
|
```
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue