Skip to content

Configuration file e.g tmux, vim etc.

Notifications You must be signed in to change notification settings

pbielak/dotfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dotfiles

NixOS install steps

  • Partition disk (GPT)
parted /dev/sda -- mklabel gpt

parted /dev/sda -- mkpart ESP fat32 1MiB 512MiB
parted /dev/sda -- set 3 boot on

parted /dev/sda -- mkpart primary 512MiB -100MiB

parted /dev/sda -- mkpart primary linux-swap -100MiB 100%
  • Encrypt root partition
cryptsetup luksFormat /dev/sda2
cryptsetup luksOpen /dev/sda2 cryptroot
  • Format partitions
mkfs.fat -F 32 -n boot /dev/sda1
mkfs.ext4 -L nixos /dev/mapper/cryptroot
mkswap -L swap /dev/sda3
  • Mount partitions
mount /dev/disk/by-label/nixos /mnt
mkdir -p /mnt/boot
mount /dev/disk/by-label/boot /mnt/boot
swapon /dev/sda3
  • Generate config & install
nixos-generate-config --root /mnt
nixos-install

NixOS configuration

Run the installation script:

./install.sh

About

Configuration file e.g tmux, vim etc.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published