Compare commits

...

2 commits

Author SHA1 Message Date
Ingolf Wagner
8f6fa5939b
fix opengl 2024-08-17 19:01:35 +02:00
Ingolf Wagner
ee4d9bcc4f
fix typo 2024-08-17 19:00:59 +02:00
6 changed files with 43 additions and 10 deletions
machines
cherry
chungus

View file

@ -10,7 +10,7 @@
./network-tinc.nix
./network-tinc_retiolum.nix
./network-wireguard-wg0.nix
./network-wireguard-wg0.nix
./network-wireguard-wg1.nix
./37c3.nix

View file

@ -3,6 +3,7 @@
imports = [
./disko-config.nix
./hardware-configuration.nix
./graphics.nix
];
boot.loader.efi.canTouchEfiVariables = true;
@ -23,4 +24,6 @@
ACTION=="add|change", KERNEL=="sd[a-z]*[0-9]*|mmcblk[0-9]*p[0-9]*|nvme[0-9]*n[0-9]*p[0-9]*", ENV{ID_FS_TYPE}=="zfs_member", ATTR{../queue/scheduler}="none"
'';
}

View file

@ -0,0 +1,19 @@
# https://wiki.nixos.org/wiki/Accelerated_Video_Playback
{ pkgs, ... }:
{
hardware.graphics.enable = true;
hardware.graphics.extraPackages = with pkgs; [
intel-media-driver # LIBVA_DRIVER_NAME=iHD
#vaapi-intel-hybrid
intel-vaapi-driver # For older processors. LIBVA_DRIVER_NAME=i965
#vaapiIntel # LIBVA_DRIVER_NAME=i965 (older but works better for Firefox/Chromium)
#vaapiVdpau
#libvdpau-va-gl
];
hardware.graphics.enable32Bit = true;
hardware.graphics.extraPackages32 = with pkgs.pkgsi686Linux; [ intel-vaapi-driver ];
environment.sessionVariables = { LIBVA_DRIVER_NAME = "i965"; }; # Optionally, set the environment variable
}

View file

@ -69,15 +69,6 @@
networking.hostName = "chungus";
hardware.graphics.enable = true;
hardware.graphics.enable32Bit = true;
hardware.graphics.extraPackages = with pkgs; [
intel-media-driver # LIBVA_DRIVER_NAME=iHD
vaapiIntel # LIBVA_DRIVER_NAME=i965 (older but works better for Firefox/Chromium)
vaapiVdpau
libvdpau-va-gl
];
# nix-shell -p speedtest_cli --run speedtest
#configuration.fireqos = {
# enable = false;

View file

@ -3,6 +3,7 @@
imports = [
./disko-config.nix
./hardware-configuration.nix
./graphics.nix
];
boot.loader.efi.canTouchEfiVariables = true;

View file

@ -0,0 +1,19 @@
# https://wiki.nixos.org/wiki/Accelerated_Video_Playback
{ pkgs, ... }:
{
hardware.graphics.enable = true;
hardware.graphics.extraPackages = with pkgs; [
intel-media-driver # LIBVA_DRIVER_NAME=iHD
#vaapi-intel-hybrid
intel-vaapi-driver # For older processors. LIBVA_DRIVER_NAME=i965
#vaapiIntel # LIBVA_DRIVER_NAME=i965 (older but works better for Firefox/Chromium)
#vaapiVdpau
#libvdpau-va-gl
];
hardware.graphics.enable32Bit = true;
hardware.graphics.extraPackages32 = with pkgs.pkgsi686Linux; [ intel-vaapi-driver ];
environment.sessionVariables = { LIBVA_DRIVER_NAME = "i965"; }; # Optionally, set the environment variable
}