nix-setup/README.md

30 lines
458 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
git clone https://git.tudbut.de/tudbut/nix-setup
2024-10-19 02:39:35 +02:00
pushd nix-setup ; mv $(ls -a) .. ; popd
2024-09-30 17:57:30 +02:00
exit
2024-10-19 02:39:35 +02:00
bash init.sh
2024-09-30 17:57:30 +02:00
nixos-install
```
2024-10-19 02:39:35 +02:00
on the install:
```sh
nixos-edit init
```