From 44e48016a722c95571c8cd30b547ee4b4c2683ea Mon Sep 17 00:00:00 2001 From: Mikhail Klementev Date: Sun, 21 Jul 2019 17:44:58 +0000 Subject: [PATCH] Add parted/cryptsetup/mount --- README.md | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index e7d7721..9fbb967 100644 --- a/README.md +++ b/README.md @@ -4,13 +4,26 @@ ## Installation - parted... - cryptsetup... - mount... + parted /dev/vda mklabel gpt + parted /dev/vda mkpart EFI fat32 0% 512M + parted /dev/vda set 1 esp on + parted /dev/vda mkpart NIX ext4 512M 100% + + cryptsetup luksFormat /dev/vda2 + cryptsetup open /dev/vda2 nix + + mkfs.vfat -F32 /dev/vda1 + mkfs.ext4 /dev/mapper/nix + + mount /dev/mapper/nix /mnt/ + mkdir /mnt/boot + mount /dev/vda1 /mnt/boot nix-env -iA nixos.gitMinimal git clone https://code.dumpstack.io/infra/localhost.git /mnt/etc/nixos/ + cd /mnt/etc/nixos + cp wireless-networks.nix.example wireless-networks.nix nano wireless-networks.nix