2023-12-04 11:37:43 +01:00
2023-12-03 23:42:50 +01:00
2023-12-03 23:42:50 +01:00
2023-11-27 23:38:25 +01:00

  • Download NixOS ISO
  • Write the ISO to a USB drive using dd
  • Boot machine from ISO
  • Install git: nix-env -i git
  • Clone configuration: git clone https://github.com/eliasrenman/nixos-config.git
  • Follow the installation guide up to nixos-generate-config
    • Copy nixos configuration files to /mnt: cp nixos-config/* /mnt/etc/nixos
    • Generate hardware config: nixos-generate-config
    • Install system: nixos-install (set root password)
  • Reboot
  • Login as root
  • Set password for elias: passwd elias
  • Log out and login as elias setting hyprland as desktop session
  • Generate an SSH key for the new machine: ssh-keygen
  • Add SSH key to github profile

Virtualbox setup

  • System -> Motherboard -> Enable EFI
  • System -> Processor -> Enable PAE
  • Display -> Graphics Controller -> VBoxVGA
  • Storage -> Controller: SATA -> Use Host I/O Cache

Cheatsheet

Nix

  • Install a package: nix-env -i packageName
  • List all available packages: nix-env -qa (take a while to run, best of dumping this and grepping the listing)

NixOS

  • Configuration file: /etc/nixos/configuration.nix
Description
No description provided
Readme 73 KiB
Languages
Nix 100%