From e11c574c6e03d50ebb3040f7150df4dd4be3c9c3 Mon Sep 17 00:00:00 2001 From: Michael Mandl Date: Mon, 22 Aug 2022 21:14:55 +0200 Subject: [PATCH] docs: protocol lenovo yoga 500 setup --- docs/yoga-setup-log.md | 48 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 docs/yoga-setup-log.md diff --git a/docs/yoga-setup-log.md b/docs/yoga-setup-log.md new file mode 100644 index 0000000..8e0e221 --- /dev/null +++ b/docs/yoga-setup-log.md @@ -0,0 +1,48 @@ +### Installer system + +```bash +fdisk /dev/sda + > g + > n + > 1 + > 2048 + > +512M + > t + > 1 + > n + > 2 + > default + > default + > t + > 2 + > 20 + > w + +mkfs.fat -F 32 -n boot /dev/sda1 + +cryptsetup -y -v luksFormat /dev/sda2 +cryptsetup -v luksOpen /dev/sda2 nixos +pvcreate /dev/mapper/nixos +vgcreate vg /dev/mapper/nixos +lvcreate -L 8G -n swap vg +lvcreate -L 100G -n root vg +lvcreate -L 100G -n root vg +lvcreate -L 100%FREE -n home vg + +mkswap -L swap /dev/vg/swap +mkfs.ext4 -L root /dev/vg/root +mkfs.ext4 -L home /dev/vg/home + +mount /dev/disk/by-label/root /mnt/ +mkdir -p /mnt/boot +mount /dev/disk/by-label/boot /mnt/boot/ +swapon /dev/disk/by-label/swap + +nixos-generate-config --root /mnt + +nano /mnt/etc/nixos/configuration.nix + +nixos-install + +reboot +```