Install

Updated: August 4, 2026

Shows steps for basic installation of NixOS

This will work for setting up a new machine.
From here you can use or install your own config.


Table of Contents

Live Image

Download Graphical img from nixos.org
burn img to USB with BalenaEtcher
plugin and boot to bios then hot boot off the USB (CMS: on Secure Boot: off)
Follow Graphical instructions nixos.org
Shutdown pull USB then boot to bios again to set the boot order to NixOS drive

megaOS

Make your own keys, place on USB, adjust paths accordingly. Nebula Prep

sudo mkdir /etc/nebula
sudo cp /run/media/megacron/PATRIOT/nebula/ca.crt /etc/nebula/
sudo cp /run/media/megacron/PATRIOT/nebula/energon.crt /etc/nebula/
sudo cp /run/media/megacron/PATRIOT/nebula/energon.key /etc/nebula/
sudo chmod --reference /etc/nix /etc/nebula
sudo chmod --reference /etc/nix/nix.conf /etc/nebula/*

SOPS Prep

mkdir -p ~/.config/sops/age
cp /run/media/megacron/PATRIOT/sops/age/keys.txt ~/.config/sops/age/

SSH Prep

mkdir ~/.ssh
sudo chmod 700 ~/.ssh
cp /run/media/megacron/PATRIOT/sops/id_megacron ~/.ssh/
cp /run/media/megacron/PATRIOT/sops/id_megacron.pub ~/.ssh/
sudo chmod 600 ~/.ssh/id_megacron

Clone megaOS git repo

mkdir ~/projects
cd !$
nix shell nixpkgs#git --extra-experimental-features "nix-command" --extra-experimental-features "flakes"
git clone https://gitlab.com/megacron/megaos.git
cp /etc/nixos/hardware-configuration.nix ~/projects/megaos/hosts/energon/
sudo nixos-rebuild switch --flake ~/projects/megaos#energon

May run into home manager clobbers, use mv command to rename with a .bak Reboot