Nix OS pre-install guide
NOTE: The following tutorial is for EFI enabled systems.
Entry point:
Typical boot process looks like this:
Motherboard firmware (UEFI) -> FS with Bootloader -> Kernel -> Init... -> ...
And we need to prepare the first 2 steps.
0. Prepare
Boot from the USB stick and setup networking. (optionally setup SSH if you want
to complete the installation from another computer)
SSH to installation:
Identify devices
1. Initialize GPT partitions
2. Create File Systems
3. Create and Mount sub-volumes
4. Install NixOS
Typical installation
Generate configuration:
Adjust mount paths (if required)
Install NixOS
Set user password
Mount and copy $BOOT
to $BOOT_BACKUP
My custom installation
Check this README.md file.
Reinstall bootloader
https://nixos.wiki/wiki/Bootloader
TODO
- open ssh port
- sshd daemon
- change hostname
- set timezone
- check DHCP on main network interface
- enable wayland
- integrate dwl
- enable ungoogled-chromium
- set keymap to colemak_dh
- enable pipewire
- enable user account
- enable base packages, nvim, git
- setup gpg-agent with ssh support
- fix hardware-configuration.nix
- swap in ram
- backup boot partition
tmpfs 1618464 415764 1202700 26% /run/user/1000
mount -o remount,size=2G /run/user/0
References