-
-
Notifications
You must be signed in to change notification settings - Fork 729
/
Copy pathdefault.nix
33 lines (27 loc) · 950 Bytes
/
default.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
{
lib,
pkgs,
...
}: {
imports = [
../../../common/cpu/intel
../../../common/pc/laptop
../../../common/pc/ssd
];
# enable firmwares with a license allowing redistribution
# this includes the Wi-Fi and Bluetooth firmwares
hardware.enableRedistributableFirmware = true;
# touchpad uses I²C, so PS/2 is unnecessary
boot.blacklistedKernelModules = ["psmouse"];
# enable finger print sensor
# configure with `sudo fprintd-enroll <username>`
services.fprintd.enable = true;
services.fprintd.tod.enable = true;
services.fprintd.tod.driver = pkgs.libfprint-2-tod1-goodix;
# enable updating firmware via `fwupdmgr`
services.fwupd.enable = true;
# enable cooling management, see NixOS/nixos-hardware#127
services.thermald.enable = lib.mkDefault true;
# fix laptop's screen flickering, see https://wiki.archlinux.org/title/Intel_graphics#Screen_flickering
boot.kernelParams = ["i915.enable_psr=0"];
}