997 B
997 B
My dotfiles - including my vim, terminal and font configs. Mostly focusing on setting things up on NixOS, but supporting other OSes where possible.
bootstrap new machine with NixOS:
- boot the target machine from the livecd
- change password for the default user
nixos
- ssh from another, already bootstrapped, machine
sudo su -
yes | parted /dev/sda -- mklabel gpt
- LUKS !
parted /dev/sda -- mkpart ESP fat32 1MiB 1GiB
parted /dev/sda -- set 1 esp on
parted /dev/sda -- mkpart primary btrfs 1GiB -8193MiB
- http://opensource.hqcodeshop.com/Parted%20calculator/parted_mkpart_calc.sh
parted /dev/sda -- mkpart primary linux-swap XXX 100%
mkfs.fat -F 32 -n boot /dev/sda1
mkfs.btrfs -L nixos /dev/sda2
mkswap -L swap /dev/sda3
mount /dev/disk/by-label/nixos /mnt
mkdir -p /mnt/boot
mount /dev/disk/by-label/boot /mnt/boot
swapon /dev/sda3
nixos-generate-config --root /mnt
vim /mnt/etc/nixos/configuration.nix