# 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, ... }: { boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usb_storage" "usbhid" ]; boot.initrd.kernelModules = [ "dm-snapshot" ]; boot.kernelModules = [ "kvm-amd" "apple-mfi-fastcharge" "zenpower" ]; boot.extraModulePackages = [ ] ++ (with config.boot.kernelPackages; [ rtl88x2bu zenpower ]); boot.extraModprobeConfig = '' options amd-pstate shared_mem=true ''; fileSystems."/" = { device = "/dev/disk/by-label/nixos"; fsType = "ext4"; }; fileSystems."/boot" = { device = "/dev/disk/by-label/boot"; fsType = "vfat"; }; fileSystems."/home" = { device = "/dev/disk/by-label/home"; fsType = "ext4"; }; fileSystems."/yocto" = { device = "/dev/disk/by-label/yocto"; fsType = "ext4"; }; swapDevices = [{ device = "/dev/disk/by-label/swap"; }]; powerManagement.cpuFreqGovernor = "ondemand"; hardware = { video.hidpi.enable = false; enableAllFirmware = true; nvidia.modesetting.enable = true; opengl = { extraPackages = with pkgs; [ vaapiVdpau ]; }; }; services.xserver.videoDrivers = [ "nvidia" ]; }