Added nixos-install instructions
parent
9c1c09856e
commit
866ee418a6
1 changed files with 22 additions and 1 deletions
|
|
@ -16,6 +16,9 @@ mount /dev/disk/by-label/NIXBOOT /mnt/boot/efi
|
||||||
swapon /dev/disk/by-label/SWAP
|
swapon /dev/disk/by-label/SWAP
|
||||||
```
|
```
|
||||||
|
|
||||||
|
<details>
|
||||||
|
<summary>If you do not have an existing configuration repository.</summary>
|
||||||
|
|
||||||
```
|
```
|
||||||
git init
|
git init
|
||||||
git crypt init
|
git crypt init
|
||||||
|
|
@ -28,3 +31,21 @@ Add a `.gitattributes` file containing
|
||||||
```
|
```
|
||||||
secrets/** filter=git-crypt diff=git-crypt
|
secrets/** filter=git-crypt diff=git-crypt
|
||||||
```
|
```
|
||||||
|
|
||||||
|
</details>
|
||||||
|
<details>
|
||||||
|
<summary>If you have a repository and you want to 'clone' an existing machine using flakes.</summary>
|
||||||
|
|
||||||
|
Clone your repository and go inside the folder containing the `flake.nix` file.
|
||||||
|
|
||||||
|
```
|
||||||
|
nixos-install --flake .#<hostname>
|
||||||
|
```
|
||||||
|
|
||||||
|
Alternatively, if you don't want to clone the repository first:
|
||||||
|
|
||||||
|
```
|
||||||
|
nixos-install --flake https://<url_to_your_repo>#<hostname>
|
||||||
|
```
|
||||||
|
|
||||||
|
</details>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue