From 7f01cc7180432bf3f5383d9577fdeed52ce86881 Mon Sep 17 00:00:00 2001 From: sajenim Date: Sat, 20 Jan 2024 15:28:41 +0800 Subject: [PATCH] Update README.md --- README.md | 35 ++++++++++++++++++----------------- 1 file changed, 18 insertions(+), 17 deletions(-) diff --git a/README.md b/README.md index 568114b..85a1fbf 100644 --- a/README.md +++ b/README.md @@ -12,28 +12,29 @@ Based upon [Misterio77's starter configs](https://github.com/Misterio77/nix-star ![screenshot](assets/2024-01-18-224416_4480x1440_scrot.png) ## Installation +```sh +# Prepare disks, create an EFI System partition and Linux Filesystem partition +fdisk /dev/nvme0n1 - # Prepare disks, create an EFI System partition and Linux Filesystem partition - fdisk /dev/nvme0n1 - - # Create our filesystems - mkfs.fat -F32 -n ESP /dev/nvme0n1p1 - mkfs.btrfs -L ${hostname} /dev/nvme0n1p2 +# Create our filesystems +mkfs.fat -F32 -n ESP /dev/nvme0n1p1 +mkfs.btrfs -L ${hostname} /dev/nvme0n1p2 - # Create our subvolumes - mount /dev/nvme0n1p2 /mnt/btrfs - btrfs subvolume create /mnt/btrfs/{root,nix,persist,swap} - umount /mnt/btrfs +# Create our subvolumes +mount /dev/nvme0n1p2 /mnt/btrfs +btrfs subvolume create /mnt/btrfs/{root,nix,persist,swap} +umount /mnt/btrfs - # Prepare for installation - mount -o compress=zstd,subvol={root,nix,persist,swap} /dev/nvme0n1p2 /mnt/{nix,persist,swap} - mount /dev/nvme0n1p1 /mnt/boot +# Prepare for installation +mount -o compress=zstd,subvol={root,nix,persist,swap} /dev/nvme0n1p2 /mnt/{nix,persist,swap} +mount /dev/nvme0n1p1 /mnt/boot - # Clone the configuration files and enter repo - git clone https://github.com/sajenim/dotfiles.nix.git && cd dotfiles.nix +# Clone the configuration files and enter repo +git clone https://github.com/sajenim/dotfiles.nix.git && cd dotfiles.nix - # Install our system configuration - nixos-install --flake .#hostname +# Install our system configuration +nixos-install --flake .#hostname +``` ## FAQ * **What is nix?**