23 lines
377 B
Markdown
23 lines
377 B
Markdown
|
# Setup
|
||
|
|
||
|
on formatted drive:
|
||
|
|
||
|
```sh
|
||
|
nixos-generate-config --root /mnt
|
||
|
vim /mnt/etc/nixos/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
|
||
|
cd /mnt/etc/nixos
|
||
|
git clone https://git.tudbut.de/tudbut/nix-setup
|
||
|
exit
|
||
|
nixos-install
|
||
|
```
|