infrastructure/hosts/neodymium/system/boot/default.nix

25 lines
602 B
Nix
Raw Normal View History

2023-12-15 15:18:36 +00:00
{
pkgs,
config,
...
}: {
# support for mounting windaube partitions
2023-12-15 15:18:36 +00:00
boot.supportedFilesystems = ["ntfs"];
boot.loader.efi.canTouchEfiVariables = true;
# clean /tmp at each boot
boot.tmp.cleanOnBoot = true;
# use latest kernel
boot.kernelPackages = pkgs.linuxPackages_latest;
2023-12-15 15:18:36 +00:00
imports = [
./lanzaboot.nix
];
2023-12-15 15:18:36 +00:00
boot.initrd.availableKernelModules = ["nvme" "xhci_pci" "ahci" "usb_storage" "usbhid" "sd_mod"];
boot.initrd.kernelModules = [];
boot.kernelModules = ["kvm-amd" "v4l2loopback"];
boot.extraModulePackages = with config.boot.kernelPackages; [v4l2loopback];
}