Update README.md

This commit is contained in:
♥ Minnie ♥ 2024-01-20 15:28:41 +08:00
parent 88d140450c
commit 7f01cc7180

View file

@ -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) ![screenshot](assets/2024-01-18-224416_4480x1440_scrot.png)
## Installation ## 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 # Create our filesystems
fdisk /dev/nvme0n1 mkfs.fat -F32 -n ESP /dev/nvme0n1p1
mkfs.btrfs -L ${hostname} /dev/nvme0n1p2
# Create our filesystems # Create our subvolumes
mkfs.fat -F32 -n ESP /dev/nvme0n1p1 mount /dev/nvme0n1p2 /mnt/btrfs
mkfs.btrfs -L ${hostname} /dev/nvme0n1p2 btrfs subvolume create /mnt/btrfs/{root,nix,persist,swap}
umount /mnt/btrfs
# Create our subvolumes # Prepare for installation
mount /dev/nvme0n1p2 /mnt/btrfs mount -o compress=zstd,subvol={root,nix,persist,swap} /dev/nvme0n1p2 /mnt/{nix,persist,swap}
btrfs subvolume create /mnt/btrfs/{root,nix,persist,swap} mount /dev/nvme0n1p1 /mnt/boot
umount /mnt/btrfs
# Prepare for installation # Clone the configuration files and enter repo
mount -o compress=zstd,subvol={root,nix,persist,swap} /dev/nvme0n1p2 /mnt/{nix,persist,swap} git clone https://github.com/sajenim/dotfiles.nix.git && cd dotfiles.nix
mount /dev/nvme0n1p1 /mnt/boot
# Clone the configuration files and enter repo # Install our system configuration
git clone https://github.com/sajenim/dotfiles.nix.git && cd dotfiles.nix nixos-install --flake .#hostname
```
# Install our system configuration
nixos-install --flake .#hostname
## FAQ ## FAQ
* **What is nix?** * **What is nix?**