feat: goodbye nvidia, A770 time
This commit is contained in:
parent
4a9ed094a5
commit
1588876ac8
3 changed files with 12 additions and 18 deletions
|
@ -1,16 +1,10 @@
|
|||
let
|
||||
nvidiaPrefix = "GDM_BACKEND=nvidia-drm LIBVA_DRIVER_NAME=nvidia __GLX_VENDOR_LIBRARY_NAME=nvidia WLR_NO_HARDWARE_CURSORS=1";
|
||||
in {
|
||||
environment.shellAliases = {
|
||||
nvidia = "${nvidiaPrefix} Hyprland";
|
||||
};
|
||||
{
|
||||
programs.hyprland = {
|
||||
enable = true;
|
||||
xwayland = {
|
||||
enable = true;
|
||||
hidpi = true;
|
||||
};
|
||||
nvidiaPatches = true;
|
||||
};
|
||||
xdg.portal.enable = true;
|
||||
xdg.portal.wlr.enable = true;
|
||||
|
|
|
@ -12,10 +12,8 @@ in {
|
|||
];
|
||||
|
||||
boot = {
|
||||
kernelPackages = pkgs.linuxPackages_6_1;
|
||||
# for nvidia
|
||||
loader.systemd-boot.consoleMode = "0";
|
||||
kernelParams = ["quiet" "splash" "vt.global_cursor_default=0"];
|
||||
kernelPackages = pkgs.linuxPackages_6_2;
|
||||
kernelParams = ["quiet" "splash"];
|
||||
};
|
||||
|
||||
hardware = {
|
||||
|
|
|
@ -63,11 +63,13 @@
|
|||
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
# high-resolution display
|
||||
hardware.video.hidpi.enable = lib.mkDefault true;
|
||||
|
||||
# fuck you, nvidia
|
||||
services.xserver.videoDrivers = ["nvidia"];
|
||||
hardware.opengl.enable = true;
|
||||
hardware.nvidia.modesetting.enable = true;
|
||||
# Optionally, you may need to select the appropriate driver version for your specific GPU.
|
||||
hardware.nvidia.package = config.boot.kernelPackages.nvidiaPackages.latest;
|
||||
hardware.opengl = {
|
||||
enable = true;
|
||||
extraPackages = with pkgs; [
|
||||
intel-media-driver
|
||||
vaapiIntel
|
||||
vaapiVdpau
|
||||
libvdpau-va-gl
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue