some t495 fixes, add fingerprint support

Signed-off-by: June Clementine Strawberry <strawberry@puppygock.gay>
This commit is contained in:
June Clementine Strawberry 2024-12-26 17:15:37 -05:00
parent 576dd88235
commit a7e0208785
No known key found for this signature in database
2 changed files with 31 additions and 3 deletions

View file

@ -18,9 +18,14 @@
boot.loader.systemd-boot.enable = true; boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true; boot.loader.efi.canTouchEfiVariables = true;
#boot.kernelParams = [ boot.kernelParams = [
# "acpi_backlight=video" "nowatchdog"
#]; "pcie_aspm=force"
"amd_iommu=force_enable"
"iommu.forcedac=1"
];
boot.kernel.sysctl."kernel.nmi_watchdog" = 0;
networking.hostName = "strawberry"; # Define your hostname. networking.hostName = "strawberry"; # Define your hostname.
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant. # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
@ -86,9 +91,20 @@
services.fwupd.enable = true; services.fwupd.enable = true;
services.fstrim.enable = true; services.fstrim.enable = true;
# enable fingerprint support
services.fprintd.enable = true;
services.fprintd.package = pkgs.fprintd-tod;
#services.fprintd.tod.enable = true;
#services.fprintd.tod.driver = pkgs.libfprint-tod;
services.power-profiles-daemon.enable = false; services.power-profiles-daemon.enable = false;
services.thermald.enable = true; services.thermald.enable = true;
services.tlp.enable = true; services.tlp.enable = true;
services.tlp.settings = {
RUNTIME_PM_ON_AC="auto";
};
services.irqbalance.enable = true;
# Configure keymap in X11 # Configure keymap in X11
services.xserver.xkb = { services.xserver.xkb = {
@ -433,6 +449,9 @@ all_branches_collapsed = false;
bind # for dig bind # for dig
wireshark wireshark
attic-client attic-client
pciutils
usbutils
lshw
]; ];
programs.zsh = { programs.zsh = {
@ -535,8 +554,12 @@ all_branches_collapsed = false;
{ domain = "@audio"; item = "nofile" ; type = "hard"; value = "99999999" ; } { domain = "@audio"; item = "nofile" ; type = "hard"; value = "99999999" ; }
]; ];
services.udev.extraRules = '' services.udev.extraRules = ''
# realtime audio stuff
KERNEL=="rtc0", GROUP="audio" KERNEL=="rtc0", GROUP="audio"
KERNEL=="hpet", GROUP="audio" KERNEL=="hpet", GROUP="audio"
# Allow <5% brightness to persist on reboot (disable clamped value of 5%)
SUBSYSTEM=="backlight", ENV{ID_BACKLIGHT_CLAMP}="0"
''; '';
# This value determines the NixOS release from which the default # This value determines the NixOS release from which the default

View file

@ -28,6 +28,11 @@
boot.kernelPackages = pkgs.linuxPackages_latest; boot.kernelPackages = pkgs.linuxPackages_latest;
boot.extraModprobeConfig = '' boot.extraModprobeConfig = ''
options thinkpad_acpi fan_control=1 options thinkpad_acpi fan_control=1
options usbcore autosuspend=5
options snd_hda_intel enable_msi=1
blacklist iTCO_wdt
blacklist sp5100_tco
''; '';
fileSystems."/" = fileSystems."/" =