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.
- Install NixOS, you might need to follow the manual
- Clone this repository to
~/.config/flake
- 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.
- Locate the Windows EFI partition
lsblk -o NAME,FSTYPE,SIZE,MOUNTPOINT
- Mount the Windows EFI partition
sudo mkdir /mnt/winboot
sudo mount /dev/nvme0n1p1 /mnt/winboot
- Copy the Windows EFI files to the NixOS EFI partition
sudo rsync -av /mnt/winboot/EFI/Microsoft/ /boot/EFI/Microsoft/
- Finally, clean up
sudo umount /mnt/winboot
sudo rmdir /mnt/winboot
macOS
- Install Lix the package manager
curl -sSf -L https://install.lix.systems/lix | sh -s -- install
- Then enter a nix development shell in order to use git and other required tools
nix develop
- Now we need to switch to the configuration, remember to replace
<host>
with the system you are configuring
just provision <host>