From 99732d8d23bd390414965ddc17b46c3a6af42478 Mon Sep 17 00:00:00 2001 From: Luke Else Date: Fri, 21 Mar 2025 10:37:48 +0000 Subject: [PATCH] Added support for initialising encrypted disk --- modules/common.nix | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/modules/common.nix b/modules/common.nix index a551c57..c4ee6c8 100644 --- a/modules/common.nix +++ b/modules/common.nix @@ -10,6 +10,20 @@ canTouchEfiVariables = true; }; + boot = { + loader = { + systemd-boot = { + enable = true; + }; + }; + efi = { + enable = true; + canTouchEfiVariables = true; + espDevice = "/dev/sda2"; + }; + initrd.luks.devices.cryptroot.device = "/dev/sda2"; + } + fileSystems."/" = { device = "/dev/mapper/root"; fsType = "ext4";