{ config, lib, pkgs, modulesPath, ... }: { imports = [ (modulesPath + "/installer/scan/not-detected.nix") ]; boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usbhid" "uas" "sd_mod" # "kvm-intel" ]; boot.initrd.kernelModules = [ "zfs" "nls_cp437" "nls_iso8859-1" "usbhid" "usb_storage" "nvme" ]; boot.kernelModules = [ "iwlwifi" "iwlmvm" "mac80211" "bluetooth" "cfg80211" "kvm-intel" ]; boot.extraModprobeConfig = "options iwlwifi disable_11ax=Y"; boot.binfmt.emulatedSystems = [ "aarch64-linux" ]; # boot.kernelParams = [ "nosgx" ]; security.lockKernelModules = false; # PAIN on an intended-portable setup # security.protectKernelImage = false; boot.loader.systemd-boot.consoleMode = "auto"; networking.hostId = "40fa5ea8"; boot.kernelPackages = pkgs.linuxPackages_6_12; environment.memoryAllocator.provider = "libc"; grimmShared = { screens = { external = { id = "HDMI-A-1"; pos = "0 0"; }; internal = { id = "eDP-1"; fps = [ 144 60 ]; }; }; laptop_hardware.enable = true; }; boot.initrd.systemd.enable = false; # breaks with luks system.etc.overlay.enable = false; # requires systemd initrd1 # Enables DHCP on each ethernet and wireless interface. In case of scripted networking # (the default) this is the recommended approach. When using systemd-networkd it's # still possible to use this option, but it's recommended to use it in conjunction # with explicit per-interface declarations with `networking.interfaces..useDHCP`. networking.useDHCP = lib.mkDefault true; # networking.interfaces.enp3s0.useDHCP = lib.mkDefault true; # networking.interfaces.wlo1.useDHCP = lib.mkDefault true; nixpkgs.hostPlatform = "x86_64-linux"; hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; }