nixos/thinkfan: lib.filterAttrs -> lib.removeAttrs

This commit is contained in:
h7x4
2025-10-26 15:21:22 +09:00
parent a01ac0648c
commit e090d24809
+4 -6
View File
@@ -101,14 +101,12 @@ let
# removes NixOS special and unused attributes
sensorToConf =
{ type, query, ... }@args:
(lib.filterAttrs (
k: v:
v != null
&& !(lib.elem k [
(lib.filterAttrs (k: v: v != null) (
lib.removeAttrs args [
"type"
"query"
])
) args)
]
))
// {
"${type}" = query;
};