diff options
author | Baitinq <manuelpalenzuelamerino@gmail.com> | 2023-12-21 19:49:21 +0100 |
---|---|---|
committer | Baitinq <manuelpalenzuelamerino@gmail.com> | 2023-12-21 19:49:21 +0100 |
commit | 3d573b725790ae63a4c7ba27d664875e767fb7af (patch) | |
tree | 1488630ab870fda4b2a866156ef0eabc13d052ea /hardware | |
parent | Update (diff) | |
download | nixos-config-3d573b725790ae63a4c7ba27d664875e767fb7af.tar.gz nixos-config-3d573b725790ae63a4c7ba27d664875e767fb7af.tar.bz2 nixos-config-3d573b725790ae63a4c7ba27d664875e767fb7af.zip |
No encrypted boot for virtualbox
Diffstat (limited to 'hardware')
-rw-r--r-- | hardware/virtualbox/disks.nix | 17 | ||||
-rw-r--r-- | hardware/virtualbox/hardware.nix | 1 |
2 files changed, 4 insertions, 14 deletions
diff --git a/hardware/virtualbox/disks.nix b/hardware/virtualbox/disks.nix index 330b4ac..d5223e3 100644 --- a/hardware/virtualbox/disks.nix +++ b/hardware/virtualbox/disks.nix @@ -1,6 +1,6 @@ { config, lib, inputs, pkgs, modulesPath, isIso, ... }: let - HDD = "/dev/disk/by-path/pci-0000:00:01.1-ata-1"; + HDD = "/dev/disk/by-path/pci-0000:00:0d.0-ata-1"; partitionsCreateScript = '' parted -s "${HDD}" mklabel gpt @@ -13,10 +13,7 @@ let ''; partitionsFormatScript = '' mkfs.vfat "${HDD}"-part1 - cryptsetup -q luksFormat "${HDD}"-part2 --type luks1 - cryptsetup open --type luks "${HDD}"-part2 encrypted_boot - mkfs.ext4 /dev/mapper/encrypted_boot - cryptsetup close encrypted_boot + mkfs.ext4 "${HDD}"-part2 cryptsetup -q luksFormat "${HDD}"-part3 --type luks2 cryptsetup open --type luks "${HDD}"-part3 encrypted_root pvcreate /dev/mapper/encrypted_root @@ -34,8 +31,7 @@ let mount -t tmpfs none /mnt mkdir -p /mnt/{boot,nix,persist,home} - cryptsetup open --type luks /dev/disk/by-partlabel/boot encrypted_boot - mount /dev/mapper/encrypted_boot /mnt/boot + mount /dev/disk/by-partlabel/boot /mnt/boot mkdir -p /mnt/boot/efi mount /dev/disk/by-partlabel/efi /mnt/boot/efi cryptsetup open --type luks /dev/disk/by-partlabel/root encrypted_root @@ -86,13 +82,8 @@ in options = [ "defaults" "mode=755" ]; }; - boot.initrd.luks.devices."encrypted_boot" = { - device = "/dev/disk/by-partlabel/boot"; - preLVM = true; - }; - fileSystems."/boot" = { - device = "/dev/mapper/encrypted_boot"; + device = "/dev/disk/by-partlabel/boot"; fsType = "ext4"; }; diff --git a/hardware/virtualbox/hardware.nix b/hardware/virtualbox/hardware.nix index 7e6e38f..d8ac693 100644 --- a/hardware/virtualbox/hardware.nix +++ b/hardware/virtualbox/hardware.nix @@ -19,7 +19,6 @@ services.xserver = { # Enable touchpad support (enabled default in most desktopManager). synaptics.enable = false; - libinput.enable = true; }; hardware = { |