From b8c7d88784d3fa48d8699dc6bc8af61208aae06b Mon Sep 17 00:00:00 2001 From: Benno Bielmeier Date: Mon, 2 Sep 2024 08:40:31 +0200 Subject: [PATCH] nixos/services.thinkfan: fix undefined variables In d9dc50dc1193ad14f8534611f7280fac4a3543d0 the usage of `with lib;` has been removed from thinkfan.nix. Unfortunately, adjusting the check line and its usage of the functions all,id,zipListsWith has not been updated resulting in evaluation errors complaining about "undefined variable". Update: partly covered in 0646a0771b031c3f54d1718e6e30cc6ed8f19430 of #339084 rel: #208242 --- nixos/modules/services/hardware/thinkfan.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/services/hardware/thinkfan.nix b/nixos/modules/services/hardware/thinkfan.nix index 1cc5ef390aab..9733fbe5aa15 100644 --- a/nixos/modules/services/hardware/thinkfan.nix +++ b/nixos/modules/services/hardware/thinkfan.nix @@ -12,7 +12,7 @@ let tuple = ts: lib.mkOptionType { name = "tuple"; merge = lib.mergeOneOption; - check = xs: lib.all lib.id (zipListsWith (t: x: t.check x) ts xs); + check = xs: lib.all lib.id (lib.zipListsWith (t: x: t.check x) ts xs); description = "tuple of" + lib.concatMapStrings (t: " (${t.description})") ts; }; level = ints.unsigned;