36 lines
578 B
Markdown
36 lines
578 B
Markdown
# nix
|
|
|
|
NixOS dotfiles and configuration.
|
|
|
|
## Installation
|
|
|
|
The below installation example is for a fresh `eirene-vm` virtual machine.
|
|
|
|
### Mount NixOS Configuration
|
|
|
|
```sh
|
|
sudo -i
|
|
mkdir /host
|
|
mount -t virtiofs host /host
|
|
```
|
|
|
|
### Format Disks
|
|
|
|
```sh
|
|
nix --experimental-features "nix-command flakes" run github:nix-community/disko -- --mode disko /host/hosts/eirene/format.nix --arg device '"/dev/vda"'
|
|
```
|
|
|
|
### Install NixOS
|
|
|
|
```sh
|
|
mkdir -p /mnt/etc/nixos
|
|
cp -r /host/* /mnt/etc/nixos
|
|
nixos-install --root /mnt --flake /mnt/etc/nixos#eirene-vm
|
|
```
|
|
|
|
### Reboot
|
|
|
|
```sh
|
|
reboot
|
|
```
|