This commit is contained in:
Peder Bergebakken Sundt 2023-06-24 14:48:53 +02:00
parent 54ba2cfd56
commit 39ced22002
6 changed files with 19 additions and 4 deletions

View File

@ -106,7 +106,7 @@
# TODO: move nixos-hardware imports to the nixos configs? # TODO: move nixos-hardware imports to the nixos configs?
noximilien = mkConfig "noximilien" "pbsds.net" "x86_64-linux" (with nm; [ common-pc common-pc-ssd common-cpu-intel ]); noximilien = mkConfig "noximilien" "pbsds.net" "x86_64-linux" (with nm; [ common-pc common-pc-ssd common-cpu-intel ]);
bolle = mkConfig "bolle" "pbsds.net" "x86_64-linux" (with nm; [ common-pc common-pc-ssd common-cpu-intel ]); bolle = mkConfig "bolle" "pbsds.net" "x86_64-linux" (with nm; [ common-pc common-pc-ssd common-cpu-intel ]);
nord = mkConfig "nord" "pbsds.net" "x86_64-linux" (with nm; [ common-pc common-pc-ssd common-cpu-intel-cpu-only common-gpu-amd ]); nord = mkConfig "nord" "pbsds.net" "x86_64-linux" (with nm; [ common-pc common-pc-ssd common-cpu-intel-cpu-only common-gpu-amd common-hidpi ]);
sopp = mkConfig "sopp" "pbsds.net" "x86_64-linux" (with nm; [ common-pc common-pc-ssd common-cpu-intel common-gpu-nvidia-nonprime ]); sopp = mkConfig "sopp" "pbsds.net" "x86_64-linux" (with nm; [ common-pc common-pc-ssd common-cpu-intel common-gpu-nvidia-nonprime ]);
}; };

View File

@ -15,9 +15,18 @@
]; ];
hardware.opengl.enable = true; hardware.opengl.enable = true;
#hardware.nvidia.package = config.boot.kernelPackages.nvidiaPackages.stable; hardware.opengl.driSupport = true;
hardware.opengl.extraPackages = with pkgs; [
vaapiVdpau
libvdpau-va-gl
];
hardware.nvidia.modesetting.enable = true; # needed for most wayland compositors
hardware.nvidia.nvidiaSettings = true;
#hardware.nvidia.open = true; # open source version of kernel module, only on driver 515.43.04+
hardware.nvidia.package = config.boot.kernelPackages.nvidiaPackages.latest; hardware.nvidia.package = config.boot.kernelPackages.nvidiaPackages.latest;
#hardware.nvidia.modesetting.enable = true; #hardware.nvidia.package = config.boot.kernelPackages.nvidiaPackages.stable;
#hardware.nvidia.powerManagement.enable = true; # Fix graphical corruption on suspend/resume
# add this to the host in question: # add this to the host in question:
#hardware.nvidia.prime = { #hardware.nvidia.prime = {
@ -27,6 +36,7 @@
# nvidiaBusId = "PCI:1:0:0"; # nvidiaBusId = "PCI:1:0:0";
#}; #};
environment.systemPackages = with pkgs; ([ environment.systemPackages = with pkgs; ([
nvtop-nvidia nvtop-nvidia

View File

@ -12,6 +12,7 @@
nixpkgs.config.libmfxSupport = true; # intel nixpkgs.config.libmfxSupport = true; # intel
hardware.opengl.enable = true; hardware.opengl.enable = true;
hardware.opengl.driSupport = true;
hardware.opengl.extraPackages = with pkgs; [ hardware.opengl.extraPackages = with pkgs; [
mesa.drivers mesa.drivers
vaapiIntel vaapiIntel

View File

@ -9,6 +9,9 @@
nixpkgs.config.openglSupport = true; # why is this not set by hardware.opengl.enable ? nixpkgs.config.openglSupport = true; # why is this not set by hardware.opengl.enable ?
nixpkgs.config.rocmSupport = true; nixpkgs.config.rocmSupport = true;
nixpkgs.config.openglSupport = true;
nixpkgs.config.vdpauSupport = true;
nixpkgs.config.vaapiSupport = true;
hardware.opengl.enable = true; hardware.opengl.enable = true;

View File

@ -65,6 +65,7 @@
#services.joycond.enable = true; #services.joycond.enable = true;
hardware.opengl.enable = true; hardware.opengl.enable = true;
hardware.opengl.driSupport = true;
hardware.opengl.driSupport32Bit = true; hardware.opengl.driSupport32Bit = true;
hardware.opengl.extraPackages32 = with pkgs.pkgsi686Linux; [ libva ]; hardware.opengl.extraPackages32 = with pkgs.pkgsi686Linux; [ libva ];

View File

@ -58,7 +58,7 @@
#tldr #tldr
entr entr
axel aria axel aria aria2
xe # xargs alternative xe # xargs alternative
sd # sed alternative sd # sed alternative
fd # find alternative fd # find alternative