Enable secure boot on kharbranth

This commit is contained in:
Charlotte Van Petegem 2023-06-20 10:39:29 +02:00
parent 412305b4b4
commit 3c9a0d97f6
No known key found for this signature in database
GPG key ID: 019E764B7184435A

View file

@ -4,10 +4,11 @@
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
boot = {
loader = {
systemd-boot.enable = true;
efi.canTouchEfiVariables = true;
lanzaboote = {
enable = true;
pkiBundle = "/etc/secureboot";
};
loader.efi.canTouchEfiVariables = true;
initrd = {
availableKernelModules = [ "xhci_pci" "thunderbolt" "nvme" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ];
kernelModules = [ "i915" ];
@ -19,6 +20,11 @@
};
};
chvp.base.zfs.systemLinks = [{ path = "/etc/secureboot"; type = "cache"; }];
# For Secure Boot management
environment.systemPackages = [ pkgs.sbctl ];
fileSystems."/" = {
device = "rpool/local/root";
fsType = "zfs";