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
|
## Installation
|
||||||
|
|
||||||
# Clone the configuration files
|
# Prepare disks, create an EFI System partition and Linux Filesystem partition
|
||||||
git clone https://github.com/sajenim/dotfiles.nix.git
|
fdisk /dev/nvme0n1
|
||||||
|
|
||||||
# We must be in the repo to access the flake
|
# Create our filesystems
|
||||||
cd ~/dotfiles.nix
|
mkfs.fat -F32 -n ESP /dev/nvme0n1p1
|
||||||
|
mkfs.btrfs -L ${hostname} /dev/nvme0n1p2
|
||||||
|
|
||||||
# Apply the system configuration
|
# Create our subvolumes
|
||||||
sudo nixos-rebuild switch --flake .#hostname
|
mount /dev/nvme0n1p2 /mnt/btrfs
|
||||||
|
btrfs subvolume create /mnt/btrfs/{root,nix,persist,swap}
|
||||||
|
umount /mnt/btrfs
|
||||||
|
|
||||||
# Apply the user configuration
|
# Prepare for installation
|
||||||
home-manager switch --flake .#user@hostname
|
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
|
## Applications
|
||||||
Main programs that create my desktop experience.
|
Main programs that create my desktop experience.
|
||||||
|
|
Loading…
Reference in a new issue