Update README.md
This commit is contained in:
parent
88d140450c
commit
7f01cc7180
35
README.md
35
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)
|
![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
|
|
||||||
mkfs.fat -F32 -n ESP /dev/nvme0n1p1
|
|
||||||
mkfs.btrfs -L ${hostname} /dev/nvme0n1p2
|
|
||||||
|
|
||||||
# Create our subvolumes
|
# Create our subvolumes
|
||||||
mount /dev/nvme0n1p2 /mnt/btrfs
|
mount /dev/nvme0n1p2 /mnt/btrfs
|
||||||
btrfs subvolume create /mnt/btrfs/{root,nix,persist,swap}
|
btrfs subvolume create /mnt/btrfs/{root,nix,persist,swap}
|
||||||
umount /mnt/btrfs
|
umount /mnt/btrfs
|
||||||
|
|
||||||
# Prepare for installation
|
# Prepare for installation
|
||||||
mount -o compress=zstd,subvol={root,nix,persist,swap} /dev/nvme0n1p2 /mnt/{nix,persist,swap}
|
mount -o compress=zstd,subvol={root,nix,persist,swap} /dev/nvme0n1p2 /mnt/{nix,persist,swap}
|
||||||
mount /dev/nvme0n1p1 /mnt/boot
|
mount /dev/nvme0n1p1 /mnt/boot
|
||||||
|
|
||||||
# Clone the configuration files and enter repo
|
# Clone the configuration files and enter repo
|
||||||
git clone https://github.com/sajenim/dotfiles.nix.git && cd dotfiles.nix
|
git clone https://github.com/sajenim/dotfiles.nix.git && cd dotfiles.nix
|
||||||
|
|
||||||
# Install our system configuration
|
# Install our system configuration
|
||||||
nixos-install --flake .#hostname
|
nixos-install --flake .#hostname
|
||||||
|
```
|
||||||
|
|
||||||
## FAQ
|
## FAQ
|
||||||
* **What is nix?**
|
* **What is nix?**
|
||||||
|
|
Loading…
Reference in a new issue