summary refs log tree commit diff
path: root/host/Rory-laptop/optional
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2025-02-08 19:36:31 +0100
committerRory& <root@rory.gay>2025-02-08 19:44:18 +0100
commit91f8d570e2121c78fb6b83fd4e7c8b601057d57f (patch)
treef1663762ebb6d1cd72b6a18d0d1550c3b1b3cf4d /host/Rory-laptop/optional
parentAdd ignore revs file (diff)
downloadRory-Open-Architecture-91f8d570e2121c78fb6b83fd4e7c8b601057d57f.tar.xz
Add laptop
Diffstat (limited to 'host/Rory-laptop/optional')
-rw-r--r--host/Rory-laptop/optional/gui/wayland.nix1
-rw-r--r--host/Rory-laptop/optional/hardware-specific/intel.nix25
2 files changed, 26 insertions, 0 deletions
diff --git a/host/Rory-laptop/optional/gui/wayland.nix b/host/Rory-laptop/optional/gui/wayland.nix

index eac6391..b850a0f 100644 --- a/host/Rory-laptop/optional/gui/wayland.nix +++ b/host/Rory-laptop/optional/gui/wayland.nix
@@ -30,6 +30,7 @@ slurp easyeffects keepassxc + networkmanagerapplet ]; }; diff --git a/host/Rory-laptop/optional/hardware-specific/intel.nix b/host/Rory-laptop/optional/hardware-specific/intel.nix new file mode 100644
index 0000000..d74c9e3 --- /dev/null +++ b/host/Rory-laptop/optional/hardware-specific/intel.nix
@@ -0,0 +1,25 @@ +{ + pkgs, + ... +}: + +{ + nixpkgs.config.packageOverrides = pkgs: { + intel-vaapi-driver = pkgs.intel-vaapi-driver.override { enableHybridCodec = true; }; + }; + + hardware = { + opengl = { + enable = true; + extraPackages = with pkgs; [ + intel-media-driver # LIBVA_DRIVER_NAME=iHD + intel-vaapi-driver # LIBVA_DRIVER_NAME=i965 (older but works better for Firefox/Chromium) + libvdpau-va-gl + ]; + }; + }; + environment.sessionVariables = { + LIBVA_DRIVER_NAME = "iHD"; + }; + system.stateVersion = "22.11"; # DO NOT EDIT! +}