1
0
Fork 0

Configure secure boot

This commit is contained in:
Avery 2025-01-15 15:29:58 +01:00
parent 8e42dc2420
commit dc4fa41b8f
Signed by: Avery
GPG key ID: B684FD451B692E04
3 changed files with 256 additions and 88 deletions

View file

@ -8,21 +8,27 @@
kernelParams = [ "video=DP-1:2560x1440@165" ];
initrd.availableKernelModules =
[ "nvme" "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ];
lanzaboote = {
enable = true;
pkiBundle = "/var/lib/sbctl";
};
loader = {
grub = {
enable = true;
device = "nodev";
efiSupport = true;
gfxmodeEfi = "2560x1440";
useOSProber = true;
systemd-boot = {
enable = lib.mkForce false;
configurationLimit = 10;
consoleMode = "max";
editor = false;
windows."11" = {
title = "Windows 11 Pro N";
efiDeviceHandle = "HD2d";
};
};
systemd-boot.enable = false;
efi.canTouchEfiVariables = true;
};
supportedFilesystems = [ "ntfs" ];
};
environment.systemPackages = with pkgs; [ ffmpeg-full gparted ];
environment.systemPackages = with pkgs; [ ffmpeg-full gparted sbctl ];
hardware.i2c.enable = true;
@ -125,8 +131,8 @@
};
udisks2.enable = true;
udev.extraRules = ''
SUBSYSTEM=="usb", ATTRS{idVendor}=="057e", ATTRS{idProduct}=="3000", MODE="0666"
# Atmel DFU
SUBSYSTEM=="usb", ATTRS{idVendor}=="057e", ATTRS{idProduct}=="3000", MODE="0666"
# Atmel DFU
### ATmega16U2
SUBSYSTEMS=="usb", ATTRS{idVendor}=="03eb", ATTRS{idProduct}=="2fef", TAG+="uaccess"
### ATmega32U2