nixos-config/README.md

35 lines
641 B
Markdown
Raw Normal View History

2023-12-20 11:43:17 +01:00
# nixos-config
2022-09-16 22:37:33 +02:00
2023-12-20 11:43:17 +01:00
## Install
2023-12-20 11:27:50 +01:00
2023-12-20 11:43:17 +01:00
### Patitioning
2023-12-20 11:27:50 +01:00
2023-12-20 11:46:24 +01:00
- Easiest is to run [disko](https://git.kabtop.de/Kabbone/nixos-config/src/branch/main/disko)
2023-12-20 11:43:17 +01:00
- **Classic way:**
2023-12-20 11:27:50 +01:00
Partition disk with gdisk:
1. EFI Partition, size 512M, type "EF00", Label "NIXBOOT"
2. Root Partition, size 100%, type "8300", Label "NIXROOT"
2023-12-20 11:43:17 +01:00
### Installing
2023-12-20 11:27:50 +01:00
1. mount all the partitions and subvolumes to /mnt
2. generate initial nixos config
2023-12-20 11:43:17 +01:00
```
# nixos-generate-config --root /mnt
```
2023-12-20 11:27:50 +01:00
3. clone flake and check config
```
# cd /mnt/etc/nixos/
# git clone https://git.kabtop.de/Kabbone/nixos-config.git
```
4. install system
2023-12-20 11:43:17 +01:00
```
# nixos-install --flake .#<host>
```
2023-12-20 11:27:50 +01:00
5. reboot