# # Clanker ! Do not modify this file! # { config, lib, pkgs, modulesPath, ... }: { imports = [ (modulesPath + "/installer/scan/not-detected.nix") ]; boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "thunderbolt" "uas" "sd_mod" ]; boot.initrd.kernelModules = [ ]; boot.kernelModules = [ "kvm-amd" ]; boot.kernelPackages = pkgs.linuxPackages_latest; boot.kernelParams = [ "quiet" "splash" "boot.shell_on_fail" "udev.log_priority=3" "rd.systemd.show_status=auto" # Improve s2idle sleep behavior on AMD "rtc_cmos.use_acpi_alarm=1" "acpi.prefer_microsoft_dsm_guid=1" "amd_pstate=active" # arms the hard-lockup detector "nmi_watchdog=1" ]; boot.kernel.sysctl = { "kernel.panic_on_oops" = 1; "kernel.panic" = 60; # currently 0 = hang forever after panic "kernel.softlockup_panic" = 1; # CPU stuck >20s in kernel -> panic "kernel.hardlockup_panic" = 1; # CPU wedged with IRQs off -> panic "kernel.sysrq" = 1; # currently 16 (sync only) }; boot.extraModulePackages = [ ]; boot.plymouth = { enable = true; }; boot.loader.systemd-boot.enable = true; boot.loader.efi.canTouchEfiVariables = true; boot.tmp.useTmpfs = true; boot.consoleLogLevel = 3; boot.initrd.verbose = false; boot.extraModprobeConfig = '' options snd_hda_intel power_save=0 ''; boot.kernel.sysctl = { "vm.swappiness" = 150; "vm.page-cluster" = 0; }; networking.useDHCP = lib.mkDefault true; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; }