- CPU: Intel i5-6300U
- GPU: Intel Skylake GT2 [HD Graphics 520]
- RAM: 32GB
- CPU: Intel i7-1165G7
- GPU: Intel TigerLake-LP GT2 [Iris Xe Graphics]
- RAM: 16GB
- CPU: AMD Ryzen 7 7800X3D
- GPU: NVIDIA GeForce RTX 4060 Ti TWIN EDGE 16GB GDDR6 DLSS3
- PSU: Forgeon Bolt PSU 850W 80+ Gold Full Modular
- Cooling System: Corsair iCUE H100i RGB ELITE 240mm
- Chassis: Corsair iCUE 4000D RGB AIRFLOW USB 3.2
- Motherboard: ASUS TUF GAMING X870-PLUS WIFI
- RAM: Corsair Vengeance DDR5 6400MHz 64GB (2x32GB CL32)
- Storage: WD Black SN850X 2TB NVMe PCIe 4.0 M.2 Gen4 16GT/s
- Keyboard/Mouse: Logitech MK295
- Format the USB drive with the latest nixOS minimal setup
sudo cp nixos-minimal*.iso /dev/sdX - You should restart the computer, enter the BIOS/UEFI, and boot from the USB.
- Init network
- Wireless mode
- Check your Wireless NIC:
ip addr |grep 'wl'(for me wlp3s0). - Set password file:
wpa_passphrase WLAN_XXX SDflsñdjfp3ur > wireless.config - Stablish connection:
sudo wpa_supplicant -i wlp3s0 -c wireless.config &
- Check your Wireless NIC:
- Ethernet (plug-in for DHCP).
- Wireless mode
- Create a partition disk, and partitions, in my case
/ and /boot. I don't need more.sudo fdisk /dev/nvme0n1 sudo mkfs.fat -F 32 /dev/nvme0n1p1 sudo cryptsetup luksFormat /dev/nvme0n1p2 sudo cryptsetup luksOpen /dev/nvme0n1p2 nix-root sudo mkfs.ext4 /dev/mapper/nixos-root
- Mounting filesystems
sudo mount /dev/mapper/nixos-root /mnt sudo mkdir /mnt/boot sudo mount /dev/nvme0n1p1 /mnt/boot
- Generate nixos configuration to get partition scheme
sudo nixos-generate-config --root /mnt/ - Copy
hardware-configuration.nixin/home/nixos.cp /mnt/etc/nixos/hardware-configuration.nix $HOME - Remove the files in
/mnt/etc/nixossudo rm -rf /mnt/etc/nixos - Clone the repository
nix-shell -p git sudo git clone https://github.com/sincorchetes/nixos-flake-hardware-profiles /mnt/etc/nixos
- Get the partition's ID from
/home/nixos/hardware-configuration.nixand replace it inmachine/partitions.nixandmachine/boot.nixfiles. - Enable flakes:
export NIX_CONFIG="extra-experimental-features = nix-command flakes" - Setup the system:
sudo nixos-install --flake /mnt/etc/nixos#thinkpad0 - Set the root password and reboot the system