# Do not modify this file! It was generated by ‘nixos-generate-config’ # and may be overwritten by future invocations. Please make changes # to /etc/nixos/configuration.nix instead. { config, lib, pkgs, modulesPath, ... }: { imports = [ (modulesPath + "/installer/scan/not-detected.nix") ]; boot.initrd.availableKernelModules = ["xhci_pci" "thunderbolt" "vmd" "nvme" "usbhid"]; boot.initrd.kernelModules = []; boot.kernelPackages = pkgs.linuxPackages_latest; boot.kernelModules = ["kvm-intel" "evdi" "intel_vpu"]; boot.kernelParams = [ "i915.enable_guc=3" #"i915.enable_psr=0" # Suppress rfkill/WLAN toggle events from asus-wmi "asus_nb_wmi.wapf=4" ]; boot.kernelPatches = [ # Both patches are malformed/outdated and don't apply to current kernel versions # Using alternative approach with extraModprobeConfig below ]; # Suppress rfkill events from keyboard attach/detach services.udev.extraRules = '' # Zenbook Duo - suppress rfkill/airplane mode key events on keyboard connect/disconnect SUBSYSTEM=="input", ATTRS{name}=="Asus WMI hotkeys", ENV{KEY_RFKILL}="0", ENV{KEY_WLAN}="0" ''; # Hardware database override to disable rfkill key on ASUS WMI hotkeys services.udev.extraHwdb = '' evdev:name:Asus WMI hotkeys:dmi:* KEYBOARD_KEY_88=unknown KEYBOARD_KEY_5d=unknown KEYBOARD_KEY_5e=unknown KEYBOARD_KEY_5f=unknown ''; # 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.docker0.useDHCP = lib.mkDefault true; # networking.interfaces.wlo1.useDHCP = lib.mkDefault true; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; environment.systemPackages = with pkgs; [ sof-firmware #rotation stuff intel-gpu-tools # For debugging and monitoring the iGPU intel-media-driver # VA-API driver for modern Intel GPUs ]; }