add opengl

This commit is contained in:
Aditya 2023-11-08 23:02:00 +05:30
parent f5e7221ca2
commit 3d8b63324b
Signed by: aditya
SSH key fingerprint: SHA256:jL1IvWsjjlPtw6HvDIHfXfhO9IkIokNEyIfuFhSdoyU

View file

@ -1,6 +1,7 @@
# Edit this configuration file to define what should be installed on # Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page # your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running nixos-help). # and in the NixOS manual (accessible by running nixos-help).
flake-overlays:
{ config, pkgs, ... }: { config, pkgs, ... }:
@ -20,10 +21,19 @@
}; };
}; };
# Allow non-free firmware
hardware.firmware = with pkgs; [ firmwareLinuxNonfree ];
hardware.opengl = {
enable = true;
extraPackages = with pkgs; [ vaapiIntel vaapiVdpau libvdpau-va-gl intel-media-driver ];
};
# Bootloader. # Bootloader.
boot.loader.systemd-boot.enable = true; boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true; boot.loader.efi.canTouchEfiVariables = true;
boot.loader.efi.efiSysMountPoint = "/boot/efi"; boot.loader.efi.efiSysMountPoint = "/boot/efi";
boot.supportedFilesystems = [ "ntfs" ];
# Kernel modules # Kernel modules
boot.kernelModules = [ "kvm-intel" "snd-hda-intel" "i8042" ]; boot.kernelModules = [ "kvm-intel" "snd-hda-intel" "i8042" ];
@ -129,7 +139,7 @@
isNormalUser = true; isNormalUser = true;
description = "user"; description = "user";
shell = pkgs.zsh; shell = pkgs.zsh;
extraGroups = [ "networkmanager" "wheel" "libvirtd" "qemu" "qemu-kvm"]; extraGroups = [ "networkmanager" "wheel" "libvirtd" "qemu" "qemu-kvm" "vo" ];
packages = with pkgs; [ packages = with pkgs; [
kate kate
vim vim
@ -150,7 +160,13 @@
virtualisation.libvirtd.enable = true; virtualisation.libvirtd.enable = true;
# Allow unfree packages # Allow unfree packages
nixpkgs.config.allowUnfree = true; nixpkgs.config = {
allowUnfree = true;
packageOverrides = pkgs: {
vaapiIntel = pkgs.vaapiIntel.override { enableHybridCodec = true; };
};
};
# List packages installed in system profile. To search, run: # List packages installed in system profile. To search, run:
# $ nix search wget # $ nix search wget
@ -172,6 +188,8 @@
gnomeExtensions.maximize-to-empty-workspace gnomeExtensions.maximize-to-empty-workspace
gnomeExtensions.hide-top-bar gnomeExtensions.hide-top-bar
gnomeExtensions.hide-activities-button gnomeExtensions.hide-activities-button
plasma5Packages.bismuth
]; ];
programs.neovim = { programs.neovim = {