-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathframework_laptop.nix
40 lines (32 loc) · 1.08 KB
/
framework_laptop.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
{ config, lib, pkgs, ... }: {
boot.initrd.kernelModules = [ "i915" ];
boot.blacklistedKernelModules = [ "hid-sensor-hub" ];
# boot.kernelParams = [ "nomodeset" ];
boot.kernelParams = [
"mem_sleep_default=deep"
"nvme.noacpi=1"
];
# Fix headphone noise when on powersave
# https://community.frame.work/t/headphone-jack-intermittent-noise/5246/55
services.udev.extraRules = ''
SUBSYSTEM=="pci", ATTR{vendor}=="0x8086", ATTR{device}=="0xa0e0", ATTR{power/control}="on"
'';
# Fingerprint support
services.fprintd.enable = true;
environment.variables = {
VDPAU_DRIVER = lib.mkIf config.hardware.graphics.enable (lib.mkDefault "va_gl");
};
# nixpkgs.config.packageOverrides = pkgs: {
# vaapiIntel = pkgs.vaapiIntel.override { enableHybridCodec = true; };
# };
# Hardware acceleration
hardware.graphics = {
enable = true;
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
];
};
}