mirror of
https://github.com/librephoenix/nixos-config
synced 2025-07-06 06:52:13 +05:30
Fixes gpu/mesa/opengl version mismatches on hyprland
This commit is contained in:
parent
899db63096
commit
3141f4bfaa
3 changed files with 23 additions and 11 deletions
|
@ -8,9 +8,9 @@
|
|||
[ (modulesPath + "/installer/scan/not-detected.nix")
|
||||
];
|
||||
|
||||
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "usbhid" "usb_storage" "sd_mod" ];
|
||||
boot.initrd.kernelModules = [ ];
|
||||
boot.kernelModules = [ "kvm-amd" ];
|
||||
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "usbhid" "usb_storage" "sd_mod" "radeon" ];
|
||||
boot.initrd.kernelModules = [ "radeon" ];
|
||||
boot.kernelModules = [ "kvm-amd" "radeon" ];
|
||||
boot.extraModulePackages = with config.boot.kernelPackages; [ zenpower ];
|
||||
hardware.opengl.extraPackages = [ pkgs.amdvlk ];
|
||||
hardware.opengl.extraPackages32 = [ pkgs.driversi686Linux.amdvlk ];
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
{ inputs, pkgs, ... }:
|
||||
|
||||
{ inputs, pkgs, lib, ... }: let
|
||||
pkgs-hyprland = inputs.hyprland.inputs.nixpkgs.legacyPackages.${pkgs.stdenv.hostPlatform.system};
|
||||
in
|
||||
{
|
||||
# Import wayland config
|
||||
imports = [ ./wayland.nix
|
||||
|
@ -30,4 +31,14 @@
|
|||
portalPackage = pkgs.xdg-desktop-portal-hyprland;
|
||||
};
|
||||
};
|
||||
|
||||
# fixes opengl/mesa version mismatch
|
||||
hardware.opengl = {
|
||||
package = pkgs-hyprland.mesa.drivers;
|
||||
|
||||
# if you also want 32-bit support (e.g for Steam)
|
||||
driSupport32Bit = true;
|
||||
package32 = pkgs-hyprland.pkgsi686Linux.mesa.drivers;
|
||||
};
|
||||
services.xserver.displayManager.sddm.package = lib.mkForce pkgs-hyprland.sddm;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue