infra/nixos-configuration/steveej-live-usb/boot.nix

24 lines
452 B
Nix
Raw Normal View History

2018-10-28 11:21:37 +01:00
{ config, lib, pkgs, ... }:
{
boot.kernelPackages = pkgs.linuxPackages_latest;
# Bootloader, initrd and Kernel
2018-10-28 14:00:47 +01:00
boot.loader.grub = {
enable = true;
enableCryptodisk = true;
version = 2;
};
2018-10-28 11:21:37 +01:00
# workaround to disable CPU wining
# current CPU has 9 idle cstates.
# Workaround for nm-pptp to enforce module load
boot.kernelModules = [
"nf_conntrack_proto_gre"
"nf_conntrack_pptp"
];
boot.tmpOnTmpfs = true;
}