1
0

Add parted/cryptsetup/mount

This commit is contained in:
dump_stack() 2019-07-21 17:44:58 +00:00
parent e4eb404c4e
commit 44e48016a7
Signed by: dump_stack
GPG Key ID: BE44DA8C062D87DC

View File

@ -4,13 +4,26 @@
## Installation ## Installation
parted... parted /dev/vda mklabel gpt
cryptsetup... parted /dev/vda mkpart EFI fat32 0% 512M
mount... 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 nix-env -iA nixos.gitMinimal
git clone https://code.dumpstack.io/infra/localhost.git /mnt/etc/nixos/ git clone https://code.dumpstack.io/infra/localhost.git /mnt/etc/nixos/
cd /mnt/etc/nixos
cp wireless-networks.nix.example wireless-networks.nix cp wireless-networks.nix.example wireless-networks.nix
nano wireless-networks.nix nano wireless-networks.nix