# 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") ]; hardware.opengl = { enable = true; driSupport = true; driSupport32Bit = true; extraPackages = with pkgs; [ vaapiVdpau libvdpau-va-gl nvidia-vaapi-driver ]; }; services.xserver.videoDrivers = ["nvidia"]; services.blueman.enable = true; hardware.bluetooth.enable = true; hardware.steam-hardware.enable = true; hardware.opentabletdriver.enable = true; hardware.enableAllFirmware = true; hardware.enableRedistributableFirmware = true; hardware.nvidia = { # Modesetting is needed for most Wayland compositors modesetting.enable = true; # Use the open source version of the kernel module # Only available on driver 515.43.04+ open = false; # Enable the nvidia settings menu nvidiaSettings = true; # Optionally, you may need to select the appropriate driver version for your specific GPU. package = config.boot.kernelPackages.nvidiaPackages.stable; }; boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usb_storage" "usbhid" "sd_mod" "sr_mod" ]; boot.initrd.kernelModules = [ ]; boot.kernelModules = [ "kvm-intel" ]; boot.extraModulePackages = [ ]; fileSystems."/" = { device = "/dev/disk/by-uuid/66b10c7e-0cfd-491e-8ccd-6da9c74ea668"; fsType = "btrfs"; options = [ "subvol=@" ]; }; fileSystems."/boot" = { device = "/dev/disk/by-uuid/16A6-6E9C"; }; fileSystems."/home" = { device = "/dev/disk/by-uuid/3acb0c54-c290-41d1-84bf-87d13ec8da5f"; fsType = "btrfs"; }; fileSystems."/home/alecake/.local/share/flatpak" = { device = "/dev/disk/by-uuid/78a8ad10-b47d-4848-9056-f180747112e3"; fsType = "ext4"; }; swapDevices = [ ]; # 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.wlp4s0.useDHCP = lib.mkDefault true; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; powerManagement.cpuFreqGovernor = lib.mkDefault "performance"; hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; }