nix-setup/README.md

24 lines
380 B
Markdown
Raw Normal View History

2024-09-30 17:57:30 +02:00
# Setup
on formatted drive:
```sh
nixos-generate-config --root /mnt
2024-10-19 02:25:53 +02:00
cd /mnt/etc/nixos
vim hardware-configuration.nix
2024-09-30 17:57:30 +02:00
```
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
```