29 lines
458 B
Markdown
29 lines
458 B
Markdown
# Setup
|
|
|
|
on formatted drive:
|
|
|
|
```sh
|
|
nixos-generate-config --root /mnt
|
|
cd /mnt/etc/nixos
|
|
vim hardware-configuration.nix
|
|
```
|
|
insert
|
|
```nix
|
|
boot.loader.grub.device = "/dev/ d i s k ";
|
|
networking.hostName = "TudbuT-Nix m a c h i n e";'
|
|
```
|
|
quit and:
|
|
```sh
|
|
nix-shell -p git
|
|
rm configuration.nix
|
|
git clone https://git.tudbut.de/tudbut/nix-setup
|
|
pushd nix-setup ; mv $(ls -a) .. ; popd
|
|
exit
|
|
bash init.sh
|
|
nixos-install
|
|
```
|
|
|
|
on the install:
|
|
```sh
|
|
nixos-edit init
|
|
```
|