From 8743b39c8d9f73d5a4138f4b2865c666172a2e09 Mon Sep 17 00:00:00 2001 From: iFargle Date: Wed, 31 Jan 2024 19:43:40 +0900 Subject: [PATCH] test --- nixos/hosts/nixos-framework/default.nix | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/nixos/hosts/nixos-framework/default.nix b/nixos/hosts/nixos-framework/default.nix index 1108f40b..48ff9ea8 100644 --- a/nixos/hosts/nixos-framework/default.nix +++ b/nixos/hosts/nixos-framework/default.nix @@ -9,10 +9,19 @@ # ../../common/modules/boot.nix ../../common/modules/udev-rules.nix ../../common/modules/ssh-luks.nix - ../../common/services/fwupd.nix + # ../../common/services/fwupd.nix ../../common/services/tlp.nix ]; + services.fwupd.enable = true; + # we need fwupd 1.9.7 to downgrade the fingerprint sensor firmware + services.fwupd.package = (import (builtins.fetchTarball { + url = "https://github.com/NixOS/nixpkgs/archive/bb2009ca185d97813e75736c2b8d1d8bb81bde05.tar.gz"; + sha256 = "sha256:003qcrsq5g5lggfrpq31gcvj82lb065xvr7bpfa8ddsw8x4dnysk"; + }) { + inherit (pkgs) system; + }).fwupd; + powerManagement.enable = true; boot.initrd.availableKernelModules = [ "xhci_pci" "nvme" "thunderbolt" ];