jungle/m/common/base/boot.nix

38 lines
1.0 KiB
Nix
Raw Normal View History

2023-04-28 11:50:43 +02:00
{ lib, pkgs, ... }:
2023-03-31 18:27:25 +02:00
{
# Use the GRUB 2 boot loader.
boot.loader.grub.enable = true;
2023-03-31 18:27:25 +02:00
2023-04-03 12:51:44 +02:00
# Enable GRUB2 serial console
boot.loader.grub.extraConfig = ''
serial --unit=0 --speed=115200 --word=8 --parity=no --stop=1
terminal_input --append serial
terminal_output --append serial
'';
2023-06-21 16:23:16 +02:00
boot.kernel.sysctl = {
2023-06-23 16:01:27 +02:00
"kernel.perf_event_paranoid" = lib.mkDefault "-1";
# Allow ptracing (i.e. attach with GDB) any process of the same user, see:
# https://www.kernel.org/doc/Documentation/security/Yama.txt
"kernel.yama.ptrace_scope" = "0";
2023-06-21 16:23:16 +02:00
};
2023-04-28 11:50:43 +02:00
boot.kernelPackages = pkgs.linuxPackages_latest;
#boot.kernelPatches = lib.singleton {
# name = "osnoise-tracer";
# patch = null;
# extraStructuredConfig = with lib.kernel; {
# OSNOISE_TRACER = yes;
# HWLAT_TRACER = yes;
# };
#};
2023-04-18 18:37:01 +02:00
boot.initrd.availableKernelModules = [ "ahci" "xhci_pci" "ehci_pci" "nvme" "usbhid" "sd_mod" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
2023-03-31 18:27:25 +02:00
}