Skip to content

Instantly share code, notes, and snippets.

@Bad3r
Last active April 3, 2026 15:38
Show Gist options
  • Select an option

  • Save Bad3r/ae4727cb6d97aae5355a9ddfb44c53b9 to your computer and use it in GitHub Desktop.

Select an option

Save Bad3r/ae4727cb6d97aae5355a9ddfb44c53b9 to your computer and use it in GitHub Desktop.
process for setting up a new nixos system via live ISO

Optaining Latest ISO for Ventoy

direct url: https://channels.nixos.org/nixos-unstable/latest-nixos-graphical-x86_64-linux.iso

Download to Ventoy

nix --extra-experimental-features nix-command --extra-experimental-features flakes run nixpkgs#wget -- "https://channels.nixos.org/nixos-unstable/latest-nixos-graphical-x86_64-linux.iso"  

Ventoy default mount path: /run/media/nixos/Ventoy

Post install

Export config

export NIX_CONFIG="extra-experimental-features = nix-command flakes pipe-operators" && export NIXPKGS_ALLOW_UNFREE=1

Configure shell (Bash is default)

printf '%s\n' \
'export NIX_CONFIG="extra-experimental-features = nix-command flakes pipe-operators"' \
'export NIXPKGS_ALLOW_UNFREE=1' \
"alias ll='ls -alh'" \
"j(){ cd \"\$@\"; }" \
"alias vi='nvim'" \
"alias gs='git status -sbu'" \
>> ~/.bashrc && . ~/.bashrc

Install temp packages

  • IMPORTANT: if using sources other than nixpkgs, you must first add your $USER as a trusted user:
sudo sed -i '$i\  nix.settings.trusted-users = [ "root" "'"$USER"'" ];' /etc/nixos/configuration.nix && \
  sudo nixos-rebuild switch

Afterwards proceed:

nix shell \
  nixpkgs#git \
  nixpkgs#gh \
  nixpkgs#neovim \
  nixpkgs#wget \
  nixpkgs#nh \
  github:numtide/llm-agents.nix#codex

to make the packages available in any terminal, use nix shell to activate the shell.

Git Ops.

gh auth login
gh repo cloneBad3r/nixost $HOME/nixos
gh repo clone Bad3r/dotfiles $HOME/dotfiles

Ensure to update hardware info

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment