{ config, lib, pkgs, modulesPath, ... }: { imports = [ (modulesPath + "/installer/scan/not-detected.nix") ]; boot = { loader = { systemd-boot.enable = true; efi.canTouchEfiVariables = true; }; initrd = { availableKernelModules = [ "xhci_pci" "ahci" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ]; kernelModules = [ "i915" ]; }; kernelModules = [ "kvm-intel" ]; extraModulePackages = [ ]; kernel.sysctl = { "vm.swappiness" = 1; }; }; fileSystems."/" = { device = "rpool/local/root"; fsType = "zfs"; }; fileSystems."/nix" = { device = "rpool/local/nix"; fsType = "zfs"; }; fileSystems."/nix/store" = { device = "rpool/local/nix-store"; fsType = "zfs"; }; fileSystems."/boot" = { device = "/dev/disk/by-uuid/A5BA-352A"; fsType = "vfat"; }; fileSystems."/cache" = { device = "rpool/local/cache"; fsType = "zfs"; }; fileSystems."/data" = { device = "rpool/safe/data"; fsType = "zfs"; }; swapDevices = [ { device = "/dev/disk/by-uuid/1de27da4-5e97-4104-ab2b-18ab14a2b90b"; } ]; powerManagement.cpuFreqGovernor = lib.mkDefault "powersave"; hardware = { cpu.intel.updateMicrocode = true; enableRedistributableFirmware = true; opengl.extraPackages = with pkgs; [ vaapiIntel vaapiVdpau libvdpau-va-gl intel-media-driver ]; }; services.fstrim.enable = true; }