From 468bbde3fd20b533f1d2905d6a9752df05027103 Mon Sep 17 00:00:00 2001 From: Frantisek Bohacek Date: Fri, 29 Sep 2023 18:17:52 +0200 Subject: [PATCH] feat: add luks to laptop configuration --- hosts/laptop/default.nix | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/hosts/laptop/default.nix b/hosts/laptop/default.nix index 19dc74b..b01e426 100644 --- a/hosts/laptop/default.nix +++ b/hosts/laptop/default.nix @@ -31,17 +31,17 @@ loader = { # EFI Boot efi = { canTouchEfiVariables = true; - efiSysMountPoint = "/boot"; - }; - grub = { # Most of grub is set up for dual boot - enable = true; - devices = [ "nodev" ]; - efiSupport = true; - useOSProber = true; # Find all boot options - configurationLimit = 2; }; + systemd-boot.enable = true; timeout = 1; # Grub auto select time }; + + initrd.luks.devices = { + crypted = { + device = "/dev/disk/by-label/root"; + preLVM = true; + } + } }; environment = { -- 2.48.1