Update installation instructions
This commit is contained in:
parent
4cf3146cfd
commit
5ad7a12722
26
README.md
26
README.md
|
@ -11,17 +11,27 @@ Based upon [Misterio77's starter configs](https://github.com/Misterio77/nix-star
|
|||
|
||||
## Installation
|
||||
|
||||
# Clone the configuration files
|
||||
git clone https://github.com/sajenim/dotfiles.nix.git
|
||||
# Prepare disks, create an EFI System partition and Linux Filesystem partition
|
||||
fdisk /dev/nvme0n1
|
||||
|
||||
# We must be in the repo to access the flake
|
||||
cd ~/dotfiles.nix
|
||||
# Create our filesystems
|
||||
mkfs.fat -F32 -n ESP /dev/nvme0n1p1
|
||||
mkfs.btrfs -L ${hostname} /dev/nvme0n1p2
|
||||
|
||||
# Apply the system configuration
|
||||
sudo nixos-rebuild switch --flake .#hostname
|
||||
# Create our subvolumes
|
||||
mount /dev/nvme0n1p2 /mnt/btrfs
|
||||
btrfs subvolume create /mnt/btrfs/{root,nix,persist,swap}
|
||||
umount /mnt/btrfs
|
||||
|
||||
# Apply the user configuration
|
||||
home-manager switch --flake .#user@hostname
|
||||
# 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
|
||||
|
||||
# Install our system configuration
|
||||
nixos-install --flake .#hostname
|
||||
|
||||
## Applications
|
||||
Main programs that create my desktop experience.
|
||||
|
|
Loading…
Reference in a new issue