move intel-vaapi-driver overrides to overlays

This commit is contained in:
Aly Raffauf 2024-06-21 16:33:54 -04:00
parent f63b229cd8
commit 860d801a12
4 changed files with 4 additions and 19 deletions

View file

@ -21,13 +21,7 @@
kernelModules = ["kvm-intel"]; kernelModules = ["kvm-intel"];
}; };
# Intel drivers with accelerated video playback support.
nixpkgs = { nixpkgs = {
config.packageOverrides = pkgs: {
intel-vaapi-driver =
pkgs.intel-vaapi-driver.override {enableHybridCodec = true;};
};
hostPlatform = lib.mkDefault "x86_64-linux"; hostPlatform = lib.mkDefault "x86_64-linux";
}; };

View file

@ -24,11 +24,6 @@
# Intel drivers with accelerated video playback support. # Intel drivers with accelerated video playback support.
nixpkgs = { nixpkgs = {
config.packageOverrides = pkgs: {
intel-vaapi-driver =
pkgs.intel-vaapi-driver.override {enableHybridCodec = true;};
};
hostPlatform = lib.mkDefault "x86_64-linux"; hostPlatform = lib.mkDefault "x86_64-linux";
}; };

View file

@ -36,14 +36,9 @@
}; };
nixpkgs = { nixpkgs = {
config.packageOverrides = pkgs: {
# Intel drivers with accelerated video playback support.
intel-vaapi-driver =
pkgs.intel-vaapi-driver.override {enableHybridCodec = true;};
};
hostPlatform = lib.mkDefault "x86_64-linux"; hostPlatform = lib.mkDefault "x86_64-linux";
}; };
hardware = { hardware = {
cpu.intel.updateMicrocode = cpu.intel.updateMicrocode =
lib.mkDefault config.hardware.enableRedistributableFirmware; lib.mkDefault config.hardware.enableRedistributableFirmware;

View file

@ -34,12 +34,12 @@
accent = "mauve"; accent = "mauve";
}; };
catppuccin-plymouth = prev.catppuccin-plymouth.override {variant = "frappe";}; catppuccin-plymouth = prev.catppuccin-plymouth.override {variant = "frappe";};
nerdfonts = prev.nerdfonts.override {fonts = ["Noto"];};
google-chrome = prev.google-chrome.override {commandLineArgs = "--gtk-version=4 --enable-wayland-ime";}; google-chrome = prev.google-chrome.override {commandLineArgs = "--gtk-version=4 --enable-wayland-ime";};
hyprland = inputs.hyprland.packages.${pkgs.system}.hyprland; hyprland = inputs.hyprland.packages.${pkgs.system}.hyprland;
hyprnome = unstable.hyprnome; hyprnome = unstable.hyprnome;
hyprshot = unstable.hyprshot; hyprshot = unstable.hyprshot;
xdg-desktop-portal-hyprland = inputs.hyprland.packages.${pkgs.system}.xdg-desktop-portal-hyprland; intel-vaapi-driver = prev.intel-vaapi-driver.override {enableHybridCodec = true;};
nerdfonts = prev.nerdfonts.override {fonts = ["Noto"];};
obsidian = prev.obsidian.overrideAttrs (old: { obsidian = prev.obsidian.overrideAttrs (old: {
installPhase = installPhase =
builtins.replaceStrings ["--ozone-platform=wayland"] builtins.replaceStrings ["--ozone-platform=wayland"]
@ -55,6 +55,7 @@
["--ozone-platform-hint=auto --enable-wayland-ime"] ["--ozone-platform-hint=auto --enable-wayland-ime"]
old.installPhase; old.installPhase;
}); });
xdg-desktop-portal-hyprland = inputs.hyprland.packages.${pkgs.system}.xdg-desktop-portal-hyprland;
}) })
]; ];
}; };