feat: goodbye nvidia, A770 time

This commit is contained in:
winston 2023-03-10 02:49:49 +01:00
parent 4a9ed094a5
commit 1588876ac8
Signed by: winston
GPG key ID: 3786770EDBC2B481
3 changed files with 12 additions and 18 deletions

View file

@ -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;

View file

@ -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 = {

View file

@ -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
];
};
}