From ab8c079ef58b240ee5b0b5531191d14c28fd96d4 Mon Sep 17 00:00:00 2001 From: Kabbone Date: Wed, 20 Dec 2023 11:43:17 +0100 Subject: [PATCH] disko: README fixup --- README.md | 18 +++++++++++------- disko/README.md | 18 ++++++++++++++---- 2 files changed, 25 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 50f9b14..519b8df 100644 --- a/README.md +++ b/README.md @@ -1,22 +1,24 @@ -# nixos-config # +# nixos-config -## Install ## +## Install -### Patitioning ### +### Patitioning - Easiest is to run [disko](https://git.kabtop.de/Kabbone/nixos-config/raw/branch/main/disko/README.md) -- `Classic way:` +- **Classic way:** Partition disk with gdisk: 1. EFI Partition, size 512M, type "EF00", Label "NIXBOOT" 2. Root Partition, size 100%, type "8300", Label "NIXROOT" -### Installing ### +### Installing 1. mount all the partitions and subvolumes to /mnt 2. generate initial nixos config -```# nixos-generate-config --root /mnt``` +``` +# nixos-generate-config --root /mnt +``` 3. clone flake and check config ``` @@ -25,6 +27,8 @@ Partition disk with gdisk: ``` 4. install system -```# nixos-install --flake .#``` +``` +# nixos-install --flake .# +``` 5. reboot diff --git a/disko/README.md b/disko/README.md index 61cbe3a..b25162b 100644 --- a/disko/README.md +++ b/disko/README.md @@ -1,8 +1,10 @@ -##Step by step## +## Step by step 1. Boot the [installer](https://nixos.org/download.html#nixos-iso) 2. Get disk name -```$ lsblk``` +``` +$ lsblk +``` 3. Get disko config ``` @@ -17,11 +19,19 @@ $ sudo nix --experimental-features "nix-command flakes" run github:nix-community ``` 6. Check if it got mounted -```$ mount | grep /mnt``` +``` +$ mount | grep /mnt +``` 7. Continue with NixOS installation Filesystem definitions come from disko, hence "--no-filesystems" -`Alternative:` continue with normal hardware-config ``` $ nixos-generate-config --no-filesystems --root /mnt $ mv /tmp/disko-config.nix /mnt/etc/nixos +``` + +`Alternative:` continue with normal hardware-config +``` +$ nixos-generate-config --root /mnt +``` +