diff options
author | Baitinq <manuelpalenzuelamerino@gmail.com> | 2022-08-31 17:40:17 +0200 |
---|---|---|
committer | Baitinq <manuelpalenzuelamerino@gmail.com> | 2022-08-31 17:40:17 +0200 |
commit | 7fe41e59c20cb119da67ee810132c178d7a4e75e (patch) | |
tree | 91a620016f6274ff027aeb6f8f3954c17cd2c2f3 /hosts/luna | |
parent | Pin nixpkgs registry (diff) | |
download | nixos-config-7fe41e59c20cb119da67ee810132c178d7a4e75e.tar.gz nixos-config-7fe41e59c20cb119da67ee810132c178d7a4e75e.tar.bz2 nixos-config-7fe41e59c20cb119da67ee810132c178d7a4e75e.zip |
Disks-create/mount: Use new cryptsetup open syntax
Diffstat (limited to 'hosts/luna')
-rw-r--r-- | hosts/luna/disks.nix | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/hosts/luna/disks.nix b/hosts/luna/disks.nix index ef26cb1..12cf848 100644 --- a/hosts/luna/disks.nix +++ b/hosts/luna/disks.nix @@ -11,13 +11,13 @@ let parted -s -a optimal "''${MMC}" mkpart "boot" 64M 264M udevadm trigger --subsystem-match=block; udevadm settle cryptsetup -q luksFormat "''${MMC}"-part2 --type luks1 - cryptsetup luksOpen "''${MMC}"-part2 encrypted_boot + cryptsetup open --type luks "''${MMC}"-part2 encrypted_boot mkfs.ext4 /dev/mapper/encrypted_boot cryptsetup close encrypted_boot parted -s -a optimal "''${MMC}" mkpart "nix" 264M 100% udevadm trigger --subsystem-match=block; udevadm settle cryptsetup -q luksFormat "''${MMC}"-part3 --type luks2 - cryptsetup luksOpen "''${MMC}"-part3 encrypted_nix + cryptsetup open --type luks "''${MMC}"-part3 encrypted_nix mkfs.btrfs -f /dev/mapper/encrypted_nix cryptsetup close encrypted_nix @@ -26,7 +26,7 @@ let parted -s -a optimal "''${SD}" mkpart "home_and_persist" 1024KiB 100% udevadm trigger --subsystem-match=block; udevadm settle cryptsetup -q luksFormat "''${SD}"-part1 --type luks2 - cryptsetup luksOpen "''${SD}"-part1 encrypted_home_and_persist + cryptsetup open --type luks "''${SD}"-part1 encrypted_home_and_persist pvcreate /dev/mapper/encrypted_home_and_persist vgcreate encrypted_home_and_persist_pool /dev/mapper/encrypted_home_and_persist lvcreate -L 4G -n persist encrypted_home_and_persist_pool @@ -40,13 +40,13 @@ let mount -t tmpfs none /mnt mkdir -p /mnt/{boot,nix,persist,home} - cryptsetup luksOpen /dev/disk/by-partlabel/boot encrypted_boot + cryptsetup open --type luks /dev/disk/by-partlabel/boot encrypted_boot mount /dev/mapper/encrypted_boot /mnt/boot mkdir -p /mnt/boot/efi mount /dev/disk/by-partlabel/efi /mnt/boot/efi - cryptsetup luksOpen /dev/disk/by-partlabel/nix encrypted_nix + cryptsetup open --type luks /dev/disk/by-partlabel/nix encrypted_nix mount -o compress-force=zstd,noatime /dev/mapper/encrypted_nix /mnt/nix - cryptsetup luksOpen /dev/disk/by-partlabel/home_and_persist encrypted_home_and_persist + cryptsetup open --type luks /dev/disk/by-partlabel/home_and_persist encrypted_home_and_persist vgchange -ay encrypted_home_and_persist_pool mount -o compress-force=zstd /dev/mapper/encrypted_home_and_persist_pool-home /mnt/home mount -o compress-force=zstd,noatime /dev/mapper/encrypted_home_and_persist_pool-persist /mnt/persist |