From a7e0208785a831833d2e5904eb40e8bdc8e33e5b Mon Sep 17 00:00:00 2001 From: June Clementine Strawberry Date: Thu, 26 Dec 2024 17:15:37 -0500 Subject: [PATCH] some t495 fixes, add fingerprint support Signed-off-by: June Clementine Strawberry --- configuration.nix | 29 ++++++++++++++++++++++++++--- hardware-configuration.nix | 5 +++++ 2 files changed, 31 insertions(+), 3 deletions(-) diff --git a/configuration.nix b/configuration.nix index 85245d0..adf2f98 100644 --- a/configuration.nix +++ b/configuration.nix @@ -18,9 +18,14 @@ boot.loader.systemd-boot.enable = true; boot.loader.efi.canTouchEfiVariables = true; - #boot.kernelParams = [ - # "acpi_backlight=video" - #]; + boot.kernelParams = [ + "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.wireless.enable = true; # Enables wireless support via wpa_supplicant. @@ -86,9 +91,20 @@ services.fwupd.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.thermald.enable = true; services.tlp.enable = true; + services.tlp.settings = { + RUNTIME_PM_ON_AC="auto"; + }; + services.irqbalance.enable = true; # Configure keymap in X11 services.xserver.xkb = { @@ -433,6 +449,9 @@ all_branches_collapsed = false; bind # for dig wireshark attic-client + pciutils + usbutils + lshw ]; programs.zsh = { @@ -535,8 +554,12 @@ all_branches_collapsed = false; { domain = "@audio"; item = "nofile" ; type = "hard"; value = "99999999" ; } ]; services.udev.extraRules = '' + # realtime audio stuff KERNEL=="rtc0", 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 diff --git a/hardware-configuration.nix b/hardware-configuration.nix index 1856789..e2b820e 100644 --- a/hardware-configuration.nix +++ b/hardware-configuration.nix @@ -28,6 +28,11 @@ boot.kernelPackages = pkgs.linuxPackages_latest; boot.extraModprobeConfig = '' options thinkpad_acpi fan_control=1 + options usbcore autosuspend=5 + options snd_hda_intel enable_msi=1 + + blacklist iTCO_wdt + blacklist sp5100_tco ''; fileSystems."/" =