dotfiles/README.md
Cyryl Płotnicki f52f96082a add bfg via nix
2021-04-03 12:52:05 +01:00

1 KiB

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:

  1. boot the target machine from the livecd
  2. change password for the default user nixos
  3. ssh from another, already bootstrapped, machine
  4. sudo su -
  5. yes | parted /dev/sda -- mklabel gpt
  6. LUKS !
  7. parted /dev/sda -- mkpart ESP fat32 1MiB 1GiB
  8. parted /dev/sda -- set 1 esp on
  9. parted /dev/sda -- mkpart primary btrfs 1GiB -8193MiB
  10. http://opensource.hqcodeshop.com/Parted%20calculator/parted_mkpart_calc.sh
  11. parted /dev/sda -- mkpart primary linux-swap XXX 100%
  12. mkfs.fat -F 32 -n boot /dev/sda1
  13. mkfs.btrfs -L nixos /dev/sda2
  14. mkswap -L swap /dev/sda3
  15. mount /dev/disk/by-label/nixos /mnt
  16. mkdir -p /mnt/boot
  17. mount /dev/disk/by-label/boot /mnt/boot
  18. swapon /dev/sda3
  19. nixos-generate-config --root /mnt
  20. vim /mnt/etc/nixos/configuration.nix

guix

I'm just starting to play with guix, these are just loose notes: