diff options
| Commit | 2fe3132bb2bf8e14d0fae9e1d78ff374ae01646b (patch) | |
|---|---|---|
| Author | 2024-07-07 11:07:47 +0300 | |
| Committer | 2024-07-07 11:07:47 +0300 | |
| Files | 7a28fdffde253f112159b89e922e7a07a4035bc0 /machines/juno/hardware-configuration.nix | |
| nix-2fe3132bb2bf8e14d0fae9e1d78ff374ae01646b.tar nix-2fe3132bb2bf8e14d0fae9e1d78ff374ae01646b.tar.gz nix-2fe3132bb2bf8e14d0fae9e1d78ff374ae01646b.zip | ||
| Parent | 78eaa0ccb01720bb91ffe6af1a0db93ab9408317 (diff) | |
[machines] Updated sysidentity and moved stuff from configuration to hardware-configuration
1 files changed, 14 insertions, 6 deletions
| -rw-r--r-- | machines/juno/hardware-configuration.nix | 20 |
diff --git a/machines/juno/hardware-configuration.nix b/machines/juno/hardware-configuration.nix index 3318aca..d732f30 100644 --- a/machines/juno/hardware-configuration.nix +++ b/machines/juno/hardware-configuration.nix @@ -1,9 +1,4 @@ -# Do not modify this file! It was generated by ‘nixos-generate-config’ -# and may be overwritten by future invocations. Please make changes -# to /etc/nixos/configuration.nix instead. -{ config, lib, pkgs, modulesPath, ... }: - -{ +{ config, lib, pkgs, modulesPath, ... }: { imports = [ (modulesPath + "/installer/scan/not-detected.nix") ]; @@ -41,4 +36,17 @@ nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; powerManagement.cpuFreqGovernor = lib.mkDefault "powersave"; hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; + + # Hardware acceleration + # https://nixos.wiki/wiki/Accelerated_Video_Playback + nixpkgs.config.packageOverrides = pkgs: { + vaapiIntel = pkgs.vaapiIntel.override { enableHybridCodec = true; }; + }; + hardware.opengl = { + enable = true; + extraPackages = with pkgs; [ + intel-media-driver # LIBVA_DRIVER_NAME=iHD + vaapiIntel # LIBVA_DRIVER_NAME=i965 (older but works better for Firefox/Chromium) + ]; + }; } |
