nix-setup/README.md

41 lines
658 B
Markdown
Raw Permalink Normal View History

2024-09-30 17:57:30 +02:00
# Setup
2024-10-21 17:43:41 +02:00
# 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
2024-10-21 17:44:17 +02:00
(all in root)
2024-10-19 03:40:05 +02:00
with formatted drive, run:
2024-09-30 17:57:30 +02:00
```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
```
2024-10-19 03:40:05 +02:00
-> and insert:
2024-09-30 17:57:30 +02:00
```nix
boot.loader.grub.device = "/dev/ d i s k ";
networking.hostName = "TudbuT-Nix m a c h i n e";'
```
2024-10-19 03:40:05 +02:00
quit and run:
2024-09-30 17:57:30 +02:00
```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
2024-10-19 03:40:05 +02:00
reboot and run on the install:
2024-10-19 02:39:35 +02:00
```sh
nixos-edit init
```