{ pkgs, ... }: let swapPart = "/dev/sda2"; in { boot.initrd.availableKernelModules = []; boot.initrd.kernelModules = []; boot.kernelModules = [ "kvm-intel" "uinput" # work around rules bug "iwlwifi" ]; boot.extraModulePackages = []; boot.resumeDevice = swapPart; boot.loader.grub.enable = true; boot.loader.grub.device = "/dev/sda"; fileSystems."/" = { device = "/dev/sda1"; fsType = "ext4"; }; fileSystems."/home" = { device = "/dev/sda3"; fsType = "ext4"; }; swapDevices = [ { device = swapPart; } ]; hardware.graphics.extraPackages = [pkgs.intel-vaapi-driver]; services.xserver.videoDrivers = ["intel"]; hardware.firmware = with pkgs; [ linux-firmware ]; nixpkgs.hostPlatform = "x86_64-linux"; }