Skip to content

Installation

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

  • To build it, run just iso lilith.
  • Or download it from the release page.

If you opted to use the lilith ISO image, you can use the iztaller script to partition the target disk and install the system. Otherwise, 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>.

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

  1. Locate the Windows EFI partition:

    Terminal window
    lsblk -o NAME,FSTYPE,SIZE,MOUNTPOINT
  2. Mount the Windows EFI partition:

    Terminal window
    sudo mkdir /mnt/winboot
    sudo mount /dev/nvme0n1p1 /mnt/winboot
  3. Copy the Windows EFI files to the NixOS EFI partition:

    Terminal window
    sudo rsync -av /mnt/winboot/EFI/Microsoft/ /boot/EFI/Microsoft/
  4. Finally, clean up:

    Terminal window
    sudo umount /mnt/winboot
    sudo rmdir /mnt/winboot
  1. Install Lix, the package manager:

    Terminal window
    curl -sSf -L https://install.lix.systems/lix | sh -s -- install
  2. Enter a Nix development shell in order to use git and other required tools:

    Terminal window
    nix develop
  3. Switch to the configuration. Replace <host> with the system you are configuring:

    Terminal window
    just provision <host>