NixOS

You might want to use the lilith iso configuration, provided in this repository

  • To build it you can run nix build .#images.lilith.
  • Or you can download it from the release page.

If you opted to use the lilith iso image, you can use the iznix-install script to install it on your system. Otherwise, you can follow the steps below.

  1. Install NixOS, you might need to follow the manual
  2. Clone this repository to ~/.config/flake
  3. Run sudo nixos-rebuild switch --flake ~/.config/flake#<host>

Dual boot

If you would like to set up duel boot with Windows, you should consider enabling secure boot. To do so you should follow the lanzaboote guide.

  1. Locate the Windows EFI partition
lsblk -o NAME,FSTYPE,SIZE,MOUNTPOINT
  1. Mount the Windows EFI partition
sudo mkdir /mnt/winboot
sudo mount /dev/nvme0n1p1 /mnt/winboot
  1. Copy the Windows EFI files to the NixOS EFI partition
sudo rsync -av /mnt/winboot/EFI/Microsoft/ /boot/EFI/Microsoft/
  1. Finally, clean up
sudo umount /mnt/winboot
sudo rmdir /mnt/winboot

macOS

  1. Install Lix the package manager
curl -sSf -L https://install.lix.systems/lix | sh -s -- install
  1. Then enter a nix development shell in order to use git and other required tools
nix develop
  1. Now we need to switch to the configuration, remember to replace <host> with the system you are configuring
just provision <host>