-
Flash NixOS ISO Image to an USB stick
-
Boot into it
-
Setup wifi (if needed)
- Start wpa_supplicant >
systemctl start wpa_supplicant
- Enable a wireless network >
wpa_cli
add_network 0 set_network 0 ssid "SSID" set_netwwork 0 psk "PSK" set_network 0 key_mgmt WPA-PSK enable_network 0
- Start wpa_supplicant >
-
Partition the system
sudo nix --experimental-features 'nix-command flakes' run github:nix-community/disko -- --mode disko --flake github:m0nsterrr/nixos-home#<hostname>
-
Generate a hardware-configuration.nix
sudo nixos-generate-config --root /mnt
-
Build the system
sudo nixos-install
-
Reboot (be sure to turn off secureboot as it's not configured yet but in setup mode to be able to enroll key)
-
Login with the root account and fetch the flake template
nix --experimental-features 'nix-command flakes' flake new -t github:m0nsterrr/nixos-home ./nixos-home && cd nixos-home
-
Follow Lanzaboot quickstart
If sbctl is not available in the current context you can donix-shell -p sbctl --run "sbctl create-keys"
-
Update nixos config as needed
nixos-rebuild switch --flake '.#<hostname>'
-
Reboot, login with
lortega
user with passwordtemp123
and don't forget to change it ! -
GG 🥳
If you need to update the configuration at anytime.
sudo nixos-rebuild switch --flake github:m0nsterrr/nixos-home#<hostname>