Skip to content

Instantly share code, notes, and snippets.

@n70n10
n70n10 / nix-reset.sh
Created April 28, 2026 10:08
NixOS system reset
#!/usr/bin/env bash
# 1. Remove all system profiles
sudo rm -f /nix/var/nix/profiles/system*
sudo rm -f /nix/var/nix/profiles/per-user/*/*
# 2. Clean everything
sudo nix-collect-garbage -d
# 3. Rebuild from scratch
@n70n10
n70n10 / arch-linux-post-install.md
Created February 17, 2026 18:11
Arch Linux post install

Arch Linux post install

Install Arch with archinstall:

  1. Manual partition. 4 GiB /boot, rest btrfs with @, @home, @log, @cache
  2. LUKS encryption for root partition
  3. Limine bootloader UKI enabled
  4. Minimal install (no DE or WM)
  5. Add a text editor (I like micro)