about summary refs log tree commit diff
diff options
context:
space:
mode:
authorBaitinq <manuelpalenzuelamerino@gmail.com>2022-08-31 16:04:50 +0200
committerBaitinq <manuelpalenzuelamerino@gmail.com>2022-08-31 16:04:50 +0200
commit7e2a54a477d6b2c13b4faaaf09b592e8b7be1e1c (patch)
tree4515fe3f1ec1cede05da7ad543cf267f92850444
parentLuna: Add disks-create and disks-mount scripts (diff)
downloadnixos-config-7e2a54a477d6b2c13b4faaaf09b592e8b7be1e1c.tar.gz
nixos-config-7e2a54a477d6b2c13b4faaaf09b592e8b7be1e1c.tar.bz2
nixos-config-7e2a54a477d6b2c13b4faaaf09b592e8b7be1e1c.zip
Update PARTITIONING guide
-rw-r--r--PARTITIONING.md55
1 files changed, 1 insertions, 54 deletions
diff --git a/PARTITIONING.md b/PARTITIONING.md
index 13cefd7..2aca6cd 100644
--- a/PARTITIONING.md
+++ b/PARTITIONING.md
@@ -1,61 +1,8 @@
-## DESCRIPTION ##
-
-## mount /dev/sdX1 /mnt/boot## sd as home and persist (4 and 60GB) (encrypted) (in btrfs subvols)
-
-## root as nix and (encrypted) and boot (150M)
-
-## tmpfs as root
-
-
-## TUTORIAL ## 
-
-# New method
+# Partition and mount disks
 ```
 nix run .#nixosConfigurations.HOST.config.disks-create
 nix run .#nixosConfigurations.HOST.config.disks-mount
 ```
 
-# Create and Format 64M EFI Partition
-mkfs.fat -F 32 /dev/$EFIPARTITION
-
-# Create and Encrypt 200M /boot Partition
-cryptsetup --verify-passphrase -v luksFormat --type luks1 /dev/$BOOTPARTITION
-cryptsetup open /dev/$BOOTPARTITION encrypted_boot
-mkfs.fat -F 32 /dev/mapper/encrypted_boot
-
-
-# Create and Encrypt /nix Partition
-cryptsetup --verify-passphrase -v luksFormat /dev/$NIXPARTITION
-cryptsetup open /dev/$NIXPARTITION encrypted_nix
-mkfs.btrfs /dev/mapper/encrypted_nix
-
-# Format /nix Partition
-mount -t btrfs /dev/mapper/encrypted_nix /mnt
-btrfs subvolume create /mnt/nix
-umount /mnt
-
-
-# Create and Encrypt /home and /persist Partitions
-cryptsetup --verify-passphrase -v luksFormat /dev/$HOME_AND_PERSIST_PARTITION
-cryptsetup open /dev/$NIXPARTITION encrypted_home_and_persist
-mkfs.btrfs /dev/mapper/encrypted_home_and_persist
-
-# Format /home and /persist Partitions
-mount -t btrfs /dev/mapper/encrypted_home_and_persist /mnt
-btrfs subvolume create /mnt/home
-btrfs subvolume create /mnt/persist
-umount /mnt
-
-# Mount tmpfs in /
-mount -t tmpfs none /mnt
-mkdir -p /mnt/{boot,nix,persist,home}
-
-# Mount all partitions in /
-mount /dev/mapper/encrypted_boot /mnt/boot
-mount /dev/$EFIPARTITION /mnt/boot/efi
-mount -o subvol=nix,compress-force=zstd,noatime /dev/mapper/encrypted_nix /mnt/nix
-mount -o subvol=home,compress-force=zstd /dev/mapper/encrypted_home_and_persist /mnt/home
-mount -o subvol=persist,compress-force=zstd,noatime /dev/mapper/encrypted_home_and_persist /mnt/persist
-
 # Install nixos
 nixos-install --flake .#HOST