This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# !!WARNING!! | |
# This will DELETE all efforts you have put into configuring nix | |
# Have a look through everything that gets deleted / copied over | |
nix-env -e '.*' | |
rm -rf $HOME/.nix-* | |
rm -rf $HOME/.config/nixpkgs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Arch Linux installation procedure on a Lenovo ThinkPad X200s | |
# BIOS boot (no UEFI), SSD + LVM + LUKS + TRIM + discards | |
# Randomize (or zero) drive contents | |
dd if=/dev/urandom of=/dev/sda | |
# Create GPT and partitions | |
# Use gdisk to ensure proper partition alignment | |
gdisk /dev/sda | |
# 100MB boot partition on /dev/sda1 type 8300 |