nix-setup/README.md
2024-10-21 17:44:17 +02:00

40 lines
658 B
Markdown

# Setup
# install.sh process
```
curl -o install.sh https://git.tudbut.de/TudbuT/nix-setup/raw/branch/main/install.sh
bash install.sh
```
# init.sh process
(all in root)
with formatted drive, run:
```sh
nixos-generate-config --root /mnt
cd /mnt/etc/nixos
vim hardware-configuration.nix
```
-> and insert:
```nix
boot.loader.grub.device = "/dev/ d i s k ";
networking.hostName = "TudbuT-Nix m a c h i n e";'
```
quit and run:
```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
```
reboot and run on the install:
```sh
nixos-edit init
```