Howto nixos: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 6: | Line 6: | ||
or install nixos on virtual machine: | or install nixos on virtual machine: | ||
qemu-img create -f qcow2 /var/lib/libvirt/images/nixos_disk1_100G.qcow2 100G | qemu-img create -f qcow2 /var/lib/libvirt/images/nixos_disk1_100G.qcow2 100G | ||
boot with nixos iso and create partitions: | |||
parted /dev/vda -- mklabel gpt | |||
parted /dev/sda -- mkpart ESP fat32 1 1GB | |||
parted /dev/sda -- mkpart primary linux-swap 1GB 8GB | |||
parted /dev/sda -- mkpart primary ext4 8GB 100% | |||
format partitions: | |||
mkfs.fat -F 32 -n boot /dev/vda1 | |||
mkswap -L swap /dev/vda2 | |||
mkfs.ext4 -L nixos /dev/vda3 | |||
= references = | = references = | ||
* https://nixos.org/manual/nixos/stable/index.html#sec-installation-manual | * https://nixos.org/manual/nixos/stable/index.html#sec-installation-manual |
Revision as of 17:55, 25 June 2023
configure enviroment
download nixos installation iso:
https://channels.nixos.org/nixos-23.05/latest-nixos-minimal-x86_64-linux.iso
create usb to install on physical desktop:
yay -S ventoy-bin
or install nixos on virtual machine:
qemu-img create -f qcow2 /var/lib/libvirt/images/nixos_disk1_100G.qcow2 100G
boot with nixos iso and create partitions:
parted /dev/vda -- mklabel gpt parted /dev/sda -- mkpart ESP fat32 1 1GB parted /dev/sda -- mkpart primary linux-swap 1GB 8GB parted /dev/sda -- mkpart primary ext4 8GB 100%
format partitions:
mkfs.fat -F 32 -n boot /dev/vda1 mkswap -L swap /dev/vda2 mkfs.ext4 -L nixos /dev/vda3