{ lib, config, pkgs, ... }: { imports = [ # Desktop Environments ../../../desktops/common.nix # ../../../desktops/hyprland.nix ../../../desktops/gnome.nix # Power Mamagement ../../../modules/powertop.nix ]; # Set your time zone. time.timeZone = "Asia/Tokyo"; # Set the networking hostname: networking.hostName = "nixos-laptop"; # Configure the fingerprint reader services.fprintd = { enable = true; tod.enable = true; tod.driver = pkgs.libfprint-2-tod1-vfs0090; }; # Enable nVidia PRIME Render Offload and OpenGL # https://github.com/NixOS/nixos-hardware/blob/master/lenovo/thinkpad/p1/3th-gen/nvidia.nix # https://libreddit.kavin.rocks/r/NixOS/comments/x04dyv/optimus_help/ # boot.kernelParams = [ "nomodeset" ]; # nVidia information: # https://github.com/NixOS/nixpkgs/pull/211300 # https://github.com/NixOS/nixpkgs/pull/244060 hardware = { opengl.enable = true; opengl.driSupport32Bit = true; opengl.driSupport = true; # opengl.extraPackages = with pkgs; [ nvidia-vaapi-driver ]; # https://nixpk.gs/pr-tracker.html?pr=244060 nvidia = { open = true; dynamicBoost.enable = true; nvidiaPersistenced = false; package = config.boot.kernelPackages.nvidiaPackages.latest; powerManagement.finegrained = true; # powerManagement.enable = true; # modesetting.enable = true; prime = { reverseSync.enable = false; sync.enable = false; offload = { enable = true; enableOffloadCmd = true; }; intelBusId = lib.mkDefault "PCI:0:2:0"; nvidiaBusId = lib.mkDefault "PCI:1:0:0"; }; }; }; environment.systemPackages = with pkgs; [ # Fingerprint software fprintd # nVidia graphics options vulkan-loader vulkan-validation-layers vulkan-tools gwe nvtop-nvidia # Game related things gamemode wineWowPackages.stable winetricks wineWowPackages.waylandFull ]; }